Car error
#1

trying to forbid players that are not in the faction to enter a car, and its not working.

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_PASSENGER)
    {
        new v = GetPlayerVehicleID(playerid);
        
        if(VehPD(v) && PI[playerid][Member] != 1 && PI[playerid][Leader] != 1)
        {
			SCM(playerid, GREY, "You don't have the keys");
			RemovePlayerFromVehicle(playerid);
		}
  		else if(VehNSA(v) && PI[playerid][Member] != 2 && PI[playerid][Leader] != 2)
        {
			SCM(playerid, GREY, "You don't have the keys");
			RemovePlayerFromVehicle(playerid);
		}
	}
	return 1;
}
Reply


Messages In This Thread
Car error - by ShoortyFl - 21.06.2014, 18:31
Re: Car error - by RenovanZ - 21.06.2014, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)