Lock cars for certain players?
#8

Ok, I got the IDs and set the IDs, but for some reason it kicks the player out no matter what car he is in, or what faction... this is how it looks:



Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == PLAYER_STATE_DRIVER)
	{
		if(GetPlayerVehicleID(playerid) == 65 || 66 || 67 || 68 || 69 || 70 || 71 || 72 || 73 || 74 || 75 || 76 || 77 || 78 || 79 || 80 || 81 || 82 || 83 || 84 || 85 || 86 && Faction[playerid] != 3)
		{
		SCM(playerid, COLOR_RED, "You are not a police officer!");
		new string[128];
		format(string,128,"vehicle id: %d",GetPlayerVehicleID(playerid));
		SendClientMessage(playerid,COLOR_RED,string);
		RemovePlayerFromVehicle(playerid);
		}
	}
	else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == 65 || 66 || 67 || 68 || 69 || 70 || 71 || 72 || 73 || 74 || 75 || 76 || 77 || 78 || 79 || 80 || 81 || 82 || 83 || 84 || 85 || 86 && Faction[playerid] == 3)
	{
	  SCM(playerid, COLOR_WHITE, "Police Vehicle");
	}
	return 1;
}
Reply


Messages In This Thread
Lock cars for certain players? - by gemadon - 10.08.2009, 03:28
Re: Lock cars for certain players? - by WrathOfGenesis - 10.08.2009, 06:45
Re: Lock cars for certain players? - by James_Alex - 10.08.2009, 09:08
Re: Lock cars for certain players? - by gemadon - 10.08.2009, 16:01
Re: Lock cars for certain players? - by Rizard - 10.08.2009, 16:31
Re: Lock cars for certain players? - by gemadon - 10.08.2009, 18:02
Re: Lock cars for certain players? - by Rizard - 10.08.2009, 23:28
Re: Lock cars for certain players? - by gemadon - 11.08.2009, 02:48
Re: Lock cars for certain players? - by Abernethy - 11.08.2009, 02:54
Re: Lock cars for certain players? - by gemadon - 11.08.2009, 14:49

Forum Jump:


Users browsing this thread: 2 Guest(s)