11.08.2013, 23:14
Hi guys, i'm having this problem with this Health + Armour script. I tried it all, but it won't work. When it sends the messagge, the value isn't right and I don't know why. Can you help me? Thanks.
The script is italian, so I'll translate sideways
The script is italian, so I'll translate sideways
PHP код:
new Float: Vita = 0; // Health Float
new Float: Armatura = 0; // Armour Float
GetPlayerHealth(killerid, Vita); //Here I get killer's health
GetPlayerHealth(killerid, Armatura); //Here I get killer's armour
new randMSG = random(sizeof(RandomKill));
format(stringa, sizeof(stringa), "{00FF00}*{FFFFFF}*{FF0000}* {FFFFFF}%s ha %s %s {FF0000}| %s | H/A:%d | FT: %0.2f |", nome2, RandomKill[randMSG], nome, GunNames[GetPlayerWeapon(killerid)], floatround(Vita+Armatura)/*floatround (health+armour)*/, Distanza);
SendClientMessageToAll(-1, stringa);}