[Ajuda] Lataria
#1

Como posso fazer que quando a lataria chegar em 40% a textdraw fique vermelha?

PHP код:
        new DamageString[50], Float:Health;
        
GetVehicleHealth(GetPlayerVehicleID(playerid),Health);
        
format(DamageString50"~g~%d%% L"floatround(Health)/10);
        
PlayerTextDrawSetString(playeridVelo[6], DamageString);
        
PlayerTextDrawShow(playerid,Velo[6]); 
Reply
#2

PHP код:
        new DamageString[50], Float:Health;         
        
GetVehicleHealth(GetPlayerVehicleID(playerid),Health); 
        new 
Lataria =  floatround(Health)/10;
        
format(DamageString50, (Lataria<=40)?("~r~%d%% L"):("~g~%d%% L"), Lataria); 
        
PlayerTextDrawSetString(playeridVelo[6], DamageString);         
        
PlayerTextDrawShow(playerid,Velo[6]); 
Reply
#3

Quote:
Originally Posted by valdirdd
Посмотреть сообщение
PHP код:
        new DamageString[50], Float:Health;         
        
GetVehicleHealth(GetPlayerVehicleID(playerid),Health); 
        new 
Lataria =  floatround(Health)/10;
        
format(DamageString50, (Lataria<=40)?("~r~%d%% L"):("~g~%d%% L"), Lataria); 
        
PlayerTextDrawSetString(playeridVelo[6], DamageString);         
        
PlayerTextDrawShow(playerid,Velo[6]); 
Obrigadooo haha
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)