If the vehicle health lower than 250, remove the player
#7

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)