Protecting Vehicles Based On Skins
#2

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new playersVehicle = GetPlayerVehicleID(playerid), playersSkin = GetPlayerSkin(playerid);
        if(48 < playersVehicle < 70 && playersSkin != 286 && playersSkin != 287)
        {
            RemovePlayerFromVehicle(playerid);
            return SendClientMessage(playerid, -1, "You are not part of the military.");
        }
    }

    return 1;
}
Reply


Messages In This Thread
Protecting Vehicles Based On Skins - by Dennis_Smith - 18.11.2012, 03:00
Re: Protecting Vehicles Based On Skins - by SuperViper - 18.11.2012, 03:17
Re: Protecting Vehicles Based On Skins - by Dennis_Smith - 18.11.2012, 03:38
Re: Protecting Vehicles Based On Skins - by Azazelo - 18.11.2012, 03:58
Re: Protecting Vehicles Based On Skins - by mastermax7777 - 18.11.2012, 03:59
Re: Protecting Vehicles Based On Skins - by SuperViper - 18.11.2012, 04:02

Forum Jump:


Users browsing this thread: 1 Guest(s)