how to check players health
#3

Quote:
Originally Posted by Roban[swe
]
Try this:

pawn Код:
if (strcmp("/heal", cmdtext, true, 10) == 0)
    {
    new Float:HP;
    GetPlayerHealth(playerid, HP);
    if(HP <= 99)
    {
    SetPlayerHealth(playerid, 100.0);
    }
    else
    {
    }
    return 1;
}
How do i make it, so like I Think that command works but...How do i make it so it says "Your hp is full" if its at 100 with that command?
Reply


Messages In This Thread
how to check players health - by killdahobo99 - 16.06.2009, 19:10
Re: how to check players health - by robanswe - 16.06.2009, 19:18
Re: how to check players health - by killdahobo99 - 16.06.2009, 19:28
Re: how to check players health - by Grim_ - 16.06.2009, 19:40
Re: how to check players health - by robanswe - 16.06.2009, 19:41
Re: how to check players health - by SpiderPork - 16.06.2009, 19:46
Re: how to check players health - by Grim_ - 16.06.2009, 19:47
Re: how to check players health - by SpiderPork - 16.06.2009, 19:48
Re: how to check players health - by killdahobo99 - 16.06.2009, 20:06
Re: how to check players health - by robanswe - 16.06.2009, 20:08

Forum Jump:


Users browsing this thread: 2 Guest(s)