[Help] GetPlayerHealth
#3

pawn Код:
if(strcmp(cmdtxt, "/givelicense", true) == 0)
    {
        new Float:health; // We determine that the health is a Float, so we create it
        new string[64]; // 128 is too big for this, downed to 64
        GetPlayerHealth(playerid, health); // Its not the same as GetPlayerName, check the wiki for more info.
        format(string, sizeof(health),"Your HP is at %.1f percent!",health); // we format it
        SendClientMessage(RED,string); // we send the message
        return 1; // we close the command
    }
Reply


Messages In This Thread
[Help] GetPlayerHealth - by Tony1337 - 14.04.2010, 01:01
Re: [Help] GetPlayerHealth - by Ibanez - 14.04.2010, 01:20
Re: [Help] GetPlayerHealth - by CuervO - 14.04.2010, 01:57
Re: [Help] GetPlayerHealth - by Tony1337 - 14.04.2010, 02:05
Re: [Help] GetPlayerHealth - by Backwardsman97 - 14.04.2010, 03:12
Re: [Help] GetPlayerHealth - by RichyB - 14.04.2010, 08:11
Re: [Help] GetPlayerHealth - by Thrarod - 14.04.2010, 08:52
Re: [Help] GetPlayerHealth - by Vetle - 14.04.2010, 08:58
Re: [Help] GetPlayerHealth - by Tony1337 - 14.04.2010, 12:08

Forum Jump:


Users browsing this thread: 3 Guest(s)