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

Try:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER && GetPlayerTeam(playerid, != 5);
    {
    new pVehicle = GetVehicleModel(vehicleid);
    if(pVehicle == 523 || pVehicle == 427 || pVehicle == 490 || pVehicle == 528 || pVehicle == 596 || pVehicle == 598 || pVehicle == 597 || pVehicle == 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: 1 Guest(s)