Vehicle Help Important !
#2

Take a look here:

https://sampwiki.blast.hk/wiki/OnPlayerStateChange

From this you can get an idea of what to do.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(GetVehicleModel(vehicleid) == 482)
        {
            if(!IsPlayerAdmin(playerid))
            {
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Vehicle Help Important ! - by itachi - 03.04.2015, 00:02
Re: Vehicle Help Important ! - by Nautic - 03.04.2015, 00:24

Forum Jump:


Users browsing this thread: 1 Guest(s)