SA-MP Forums Archive
How to add Sweeper job to organizatsion - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to add Sweeper job to organizatsion (/showthread.php?tid=297874)



How to add Sweeper job to organizatsion - Ld Est Ld - 18.11.2011

I need to make that not everyone can drive with the sweeper, only the sweeper worker.


Re: How to add Sweeper job to organizatsion - juraska - 18.11.2011

Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == //sweeper model)
	{
	   if(!//check if player is sweeper worker) return SendClientMessage(playerid,-1,"You not swepeer worker"),
	                                                   RemovePlayerFromVehicle(playerid);
	}
	 
	return 1;
}