Author Topic: Disabling certain people to make vehicle bricks  (Read 1433 times)

Well there are noobs that try to constantly make vehicle bricks , wat i am asking : Is there any way to stop all players but super admins / admins from making them?

I tried this function :
Code: [Select]
ServercmdPlantbrick(%client)This function wont work because this function just cant get wat type of brick they are planting. =/

Anyone has a solution to this problem?

And i know this is my first post , its because i dont post much .. lol


No idea!
Great input.

This should work:
Code: [Select]
package adminOnlyVehicles
{
function serverCmdPlantBrick(%client)
{
if(!%client.isAdmin && !%client.isSuperAdmin && isObject(%client.player.tempBrick) && %client.player.tempBrick.getDataBlock().getName() $= "brickVehicleSpawnData")
return;
Parent::serverCmdPlantBrick(%client);
}
};
activatePackage(adminOnlyVehicles);


i think u forgot the {} ?

EDIT : Sorry for double posting i couldnt see the button lol

and thats not the prob , well i cant plant any brick for some reason

EDIT : ok got it to work =)

btw , can someone tell me what packages are?
« Last Edit: February 27, 2008, 07:42:09 AM by NiXiLL »

Packages are the way you overwrite current functions.

This is a full explanation.


 :cookieMonster: Nix plz can you post that level up when you kill an x no. of zombies.

well , thats a unnessecary bump...

and no, I dont even think im going to release it.

EDIT : Locked to avoid more unnecessary bumps , this problem is already solved.