Help me with dmg
#3

pawn Код:
// Top of script
new Float:OldHP[MAX_PLAYERS];

// OnPlayerConnect
OldHP[playerid] = 0;

// In text draw code
if(OldHP[playerid] != 0)
{
  new Float:HP;
  GetPlayerHealth(playerid, HP);
  if(OldHP[playerid] - NewHP > 0)
  {
   new string[128];
   format(string, sizeof(string), "%.0f", OldHP[playerid]-NewHP);
   TextDrawSetString(pText[11][playerid],string);
  }  
  GetPlayerHealth(playerid,OldHP[playerid);
}
Try that
Reply


Messages In This Thread
Help me with dmg - by PlayMaker - 19.04.2009, 20:16
Re: Help me with dmg - by PlayMaker - 20.04.2009, 07:06
Re: Help me with dmg - by ICECOLDKILLAK8 - 20.04.2009, 07:13
Re: Help me with dmg - by PlayMaker - 20.04.2009, 07:19
Re: Help me with dmg - by ICECOLDKILLAK8 - 20.04.2009, 07:19
Re: Help me with dmg - by PlayMaker - 20.04.2009, 07:27
Re: Help me with dmg - by PlayMaker - 20.04.2009, 11:39
Re: Help me with dmg - by Djiango - 20.04.2009, 12:27
Re: Help me with dmg - by PlayMaker - 20.04.2009, 12:31
Re: Help me with dmg - by PlayMaker - 21.04.2009, 14:15

Forum Jump:


Users browsing this thread: 1 Guest(s)