{Help} Car Restrictions
#2

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 425 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 432)
        {
            if(GetPlayerSkin(playerid) != 287)
            {
                new Float:x, Float:y, Float:z;
                GetPlayerPos(playerid,x,y,z);
                SetPlayerPos(playerid,x,y,z+3);
                SendClientMessage(playerid,-1,"Army members can only use this vehicle!");
            }
        }
    }
    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)