ItsMods

Full Version: Health and Points on hud source
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I really need points and health on hud source
health is already done , i dont think points is possible (or is it?)
(10-25-2013, 22:26)OzonE Wrote: [ -> ]health is already done , i dont think points is possible (or is it?)

It could be. If done through SQL youd hit the DB every frame to update unless you only made it update on kill/death. Could easily be done through hashtable if points are stored that way. If saved in a file, probably not a good idea.
it is possible without sql my friend has it but wont give it
Where's the problem with the HUD? It's really not that hard, add the basic HUD code and add this code in a timer or in OnAddonFrame.
That code only works if you're using a hashtable named "Points"

CSHARP Code
  1. foreach (ServerClient c in GetClients())
  2. {
  3. int points = (int)Points[c.XUID];
  4.  
  5. HudElem hl = GetHudElement(Client_HudElem[c.ClientNum]);
  6. hl.Value = points;
  7. }
nm got it working Wink
hillbilly can you send me the code please? or a plugin please