{Help} Car Restrictions
#4

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new playerskin = GetPlayerSkin(playerid);
    new vehid = GetVehicleModel(GetPlayerVehicleID(playerid);
    if(playerskin != 287)
    {
        if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_ENTER_VEHICLE_DRIVER)
        {
            if(vehid == 425) || vehid == 432)
            {
                ClearAnimations(playerid);
                SendClientMessage(playerid, -1 ,"You require to be a part of the army in order to enter this Hunter.");
            }
            else if(vehid == 432)
            {
                ClearAnimations(playerid);
                SendClientMessage(playerid, -1 ,"You require to be a part of the army in order to enter this Rhino.");
            }
        }
    }
    return 1;
}
I think this'll do the job
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: 2 Guest(s)