Scripting Help
#5

Quote:

drivable by anyone.

search public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) in your gamemode and add
if(!IsACop(playerid) && !ispassenger && IsACopCar(vehicleid)) { RemovePlayerFromVehicle(playerid);}
you should write public IsACop(playerid) and IsACopCar(playerid)

The filterscript with gates is better for integrating in gamemode and too to use IsACop(playerid), when enter command /open...
Reply


Messages In This Thread
Scripting Help - by 4Brothers - 09.06.2009, 19:42
Re: Scripting Help - by Backwardsman97 - 09.06.2009, 20:05
Re: Scripting Help - by 4Brothers - 09.06.2009, 20:23
Re: Scripting Help - by 4Brothers - 10.06.2009, 22:23
Re: Scripting Help - by Span1ard - 10.06.2009, 23:45
Re: Scripting Help - by bineboy - 11.06.2009, 01:55

Forum Jump:


Users browsing this thread: 2 Guest(s)