Kick player out of vehicle if not a cop.
#1

Hey, I haven't scripted in a LONG time and I am trying to find out why the hell this isn't working :P Can someone help

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == 2 && GetPlayerTeam(playerid, != 5);
	{
		if(GetVehicleModel(vehicleid) == 523, 427, 490, 528, 596, 598, 597, 599);
		RemovePlayerFromVehicle(playerid);
		SendClientMessage(playerid, COLOR_BLUE, "You are not an LEO!");
		return 1;
	}
}
Reply


Messages In This Thread
Kick player out of vehicle if not a cop. - by DownDuckling - 01.01.2015, 04:38
Re: Kick player out of vehicle if not a cop. - by Boot - 01.01.2015, 04:59
Re: Kick player out of vehicle if not a cop. - by Ryz - 01.01.2015, 04:59
Re: Kick player out of vehicle if not a cop. - by DavidBilla - 01.01.2015, 06:45
Re: Kick player out of vehicle if not a cop. - by DownDuckling - 01.01.2015, 18:34

Forum Jump:


Users browsing this thread: 2 Guest(s)