09.07.2013, 20:02
I'm trying to make armour bar looks like this health bar. The armour bar in colour but it won't work.
U made everything like health bar. And put OnPlayerUpdate
But it won't work. Please help
U made everything like health bar. And put OnPlayerUpdate
Код:
new Float:Armour; GetPlayerArmour(playerid,Armour); if(Armour >= 90) { TextDrawSetString(ArmourBar[playerid],".........."); TextDrawShowForPlayer(playerid,ArmourBar[playerid]); return 1; } if(Armour >= 80) { TextDrawSetString(ArmourBar[playerid],"........."); TextDrawShowForPlayer(playerid,ArmourBar[playerid]); return 1; } if(Armour >= 70) { TextDrawSetString(ArmourBar[playerid],"........"); TextDrawShowForPlayer(playerid,ArmourBar[playerid]); return 1; } if(Armour >= 60) { TextDrawSetString(ArmourBar[playerid],"......."); TextDrawShowForPlayer(playerid,ArmourBar[playerid]); return 1; } if(Armour >= 50) { TextDrawSetString(ArmourBar[playerid],"......"); TextDrawShowForPlayer(playerid,ArmourBar[playerid]); return 1; } if(Armour >= 40) { TextDrawSetString(ArmourBar[playerid],"....."); TextDrawShowForPlayer(playerid,ArmourBar[playerid]); return 1; } if(Armour >= 30) { TextDrawSetString(ArmourBar[playerid],"...."); TextDrawShowForPlayer(playerid,ArmourBar[playerid]); return 1; } if(Armour >= 20) { TextDrawSetString(ArmourBar[playerid],"..."); TextDrawShowForPlayer(playerid,ArmourBar[playerid]); return 1; } if(Armour >= 10) { TextDrawSetString(ArmourBar[playerid],".."); TextDrawShowForPlayer(playerid,ArmourBar[playerid]); return 1; } if(Armour > 0) { TextDrawSetString(ArmourBar[playerid],"."); TextDrawShowForPlayer(playerid,ArmourBar[playerid]); return 1; } if(Armour = 0) { TextDrawHideForPlayer(playerid, ArmourBar[playerid]); return 1; }