GetPlayerHealth.
#4

That's really basic. Yes, you can do that using Format:

pawn Код:
new Float:health; // a float variable to store the health in
new str[32]; // a string to hold the message. Consider the length
GetPlayerHealth(playerid, health); // get's the player helath and store it into the variable health
format(str, sizeof(str), "Health: %.1f", health);
SendClientMessage(playerid, -1, str);
Reply


Messages In This Thread
GetPlayerHealth. - by TaLhA XIV - 26.07.2012, 06:30
Re: GetPlayerHealth. - by newbienoob - 26.07.2012, 06:35
Re: GetPlayerHealth. - by Kindred - 26.07.2012, 06:36
Re: GetPlayerHealth. - by [KHK]Khalid - 26.07.2012, 06:40
Re: GetPlayerHealth. - by Randy More - 26.07.2012, 07:59
Re: GetPlayerHealth. - by Glint - 26.07.2012, 08:29

Forum Jump:


Users browsing this thread: 1 Guest(s)