OnPlayerEnterVehicle to StateChange
#3

pawn Код:
if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
    {
            new vehicleid = GetPlayerVehicleID(playerid);
        for(new i = 0; i < 12; i++)
        {
            new pFac = PlayerInfo[playerid][pMember];
            if(vehicleid == LSPDVehicles[i])
            {
                if(pFac != 1)
                {
                    ClearAnimations(playerid);
                    SendClientMessage(playerid, -1, "You don`t have the keys for this car.");
                }
            }
        }
    }
Reply


Messages In This Thread
OnPlayerEnterVehicle to StateChange - by Mriss - 29.03.2014, 09:45
Re: OnPlayerEnterVehicle to StateChange - by Mriss - 29.03.2014, 09:53
Re: OnPlayerEnterVehicle to StateChange - by EiresJason - 29.03.2014, 09:55
Re: OnPlayerEnterVehicle to StateChange - by Mriss - 29.03.2014, 10:12
Re: OnPlayerEnterVehicle to StateChange - by EiresJason - 29.03.2014, 10:18

Forum Jump:


Users browsing this thread: 1 Guest(s)