25.05.2013, 02:07
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(playerid);
if(vehicle == 511)
{
RemovePlayerFromVehicle(playerid);
return 1;
}
}
return 1;
}