{Help} Car Restrictions
#3

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new model = GetVehicleModel(GetPlayerVehicleID(playerid));
        if((model == 425) || (model == 432))
        {
            if(GetPlayerSkin(playerid) != 287))
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, -1, "This vehicle is for army only!");
            }
        }
    }  
    return 1;
}
Reply


Messages In This Thread
{Help} Car Restrictions - by Thoma - 18.01.2015, 22:01
Re: {Help} Car Restrictions - by Ironboy - 18.01.2015, 22:26
Re: {Help} Car Restrictions - by Schneider - 18.01.2015, 22:30
Re: {Help} Car Restrictions - by JaydenJason - 18.01.2015, 22:45
Re: {Help} Car Restrictions - by Thoma - 18.01.2015, 23:03

Forum Jump:


Users browsing this thread: 1 Guest(s)