[Help] GetPlayerHealth
#2

This should work
pawn Код:
if (strcmp("/health", cmdtext, true, 10) == 0)
{
  new Float:health; // We use Float here because health is a float
  new string[128];
  GetPlayerHealth(string, sizeof(health);
  format(string, sizeof(health),"Your HP is at %f percent!", health); // Use %f because health is a float
  SendClientMessage(RED,string);
  return 1;
}
Edit: Use the one below me, i fucked mine up (tends to happen when your heaps tired still )
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: 1 Guest(s)