29.11.2014, 12:00
maybe this:
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new id = GetPlayerVehicleID(playerid);
if(GetVehicleHealth(id) < 300)
{
SendClientMessage(playerid, 0xFFFFFFAA, "* You're being removed from your vehicle as it has less health!");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}