Add HP + Armor
#2

Did you already define the Health and Armour floats and get the variable? If not, here:
pawn Код:
new Float:khp, Float:kar;
GetPlayerHealth(playerid,khp);
GetPlayerArmour(playerid,kar);
GetWeaponName(reason,gunname,sizeof(gunname));
GetPlayerName(playerid,fName,MAX_PLAYER_NAME);
GetPlayerName(killerid,sName,MAX_PLAYER_NAME);
format(string, sizeof(string), "** %s has killed %s (Weapon: %s)(HP: %.0f).", sName, fName, gunname, khp+kar);
SendClientMessageToAll(TEAM_AWAY_COLOR,string);
Reply


Messages In This Thread
Add HP + Armor - by (_AcE_) - 19.07.2012, 22:48
Re: Add HP + Armor - by Kindred - 19.07.2012, 22:56
Re: Add HP + Armor - by blewert - 19.07.2012, 22:56

Forum Jump:


Users browsing this thread: 1 Guest(s)