03.04.2015, 00:24
Take a look here:
https://sampwiki.blast.hk/wiki/OnPlayerStateChange
From this you can get an idea of what to do.
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;
}