Vehicle Help Important !
#1

Please help with vehicle.
If Player enter vehicle burrito (id 482) so remove player vehicle,because not rcon admin.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)