05.01.2015, 04:03
pawn Код:
new Float:VidaVeiculo, Veiculo = GetPlayerVehicleID(playerid);
GetVehicleHealth(Veiculo, VidaVeiculo);
switch(VidaVeiculo)
{
case 950 .. 1000: format(String, sizeof(String),"~g~100");
case 900 .. 949: format(String, sizeof(String),"~g~90");
case 800 .. 899: format(String, sizeof(String),"~g~80");
case 700 .. 799: format(String, sizeof(String),"~y~70");
case 600 .. 699: format(String, sizeof(String),"~y~60");
case 500 .. 599: format(String, sizeof(String),"~y~50");
case 400 .. 499: format(String, sizeof(String),"~y~40");
case 300 .. 399: format(String, sizeof(String),"~r~30");
case 200 .. 299: format(String, sizeof(String),"~r~20");
case 100 .. 199: format(String, sizeof(String),"~r~10");
case 0 .. 99: format(String, sizeof(String),"~l~Corre!");
}
TextDrawSetString(EstLatariaTD, String);