Seatbelt?
#3

You make a new variable, new seatbelt[MAX_PLAYERS];
Then, on command /sb put seatbelt [playerid] = 1;
When they remove the belt (at OnPlayerExitVehicle, for example), put seatbelt[playerid] = 0;

Then comes this:
Код:
if(seatbelt[playerid] == 0 && !IsADMVCar(vehicle) && !IsADMVHeli(vehicle) && !IsABicycle(vehicle))
{
	SCM(playerid, COLOR_LIGHTGREEN,"Your seatbelt is not on type /sb to put your seatbelt on.");
}
Reply


Messages In This Thread
Seatbelt? - by NickMirra - 20.08.2015, 14:26
Re: Seatbelt? - by maxy153 - 20.08.2015, 14:27
Re: Seatbelt? - by Lunoxel - 20.08.2015, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)