Blockland Forums > Modification Help
Admin Only Vehicle
<< < (4/7) > >>
SkullCandy:

--- Quote from: Bauklotz on December 30, 2010, 01:27:38 AM ---Look at the logic there. Can't you see that %client is going to be the vehicle DATABLOCK?
"lightTankVehicle".

--- End quote ---
You're right. I forgot.... I don't script much anymore.
Placid:

--- Quote from: Bauklotz on December 30, 2010, 01:27:38 AM ---Look at the logic there. Can't you see that %client is going to be the vehicle DATABLOCK?
"lightTankVehicle".

--- End quote ---
you have a small error in yours i can't help but noticing:


--- Quote from: Bauklotz on December 29, 2010, 03:13:56 PM ---
--- Code: ---function lightTankVehicle::onMount(%this,%obj,%mnt) {
       if(!isObject(%cl = %mnt.client))
              return;
       if(%cl.isAdmin || %c[b]l[/b].isSuperAdmin)
              Parent::onMount(%this,%obj,%mnt);
       else
              commandToClient(%mnt.client,'centerPrint',"This vehicle is admin-only.",2);
}

--- End code ---

In a package, of course.

--- End quote ---

silly bauklotz switching his %c and %cl s

i might be wrong :D
thaky:
can someone get me the code?
Bauklotz:
We have, you should just have read the topic.
thaky:

--- Quote from: Bauklotz on December 31, 2010, 04:03:10 AM ---We have, you should just have read the topic.

--- End quote ---
Ya i tryed all of them
Navigation
Message Index
Next page
Previous page

Go to full version