Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Health and Points on hud source
#1
I really need points and health on hud source
Reply

#2
Health
http://www.itsmods.com/forum/Thread-Rele...ash-D.html
Reply

#3
health is already done , i dont think points is possible (or is it?)
Reply

#4
(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.
Reply

#5
it is possible without sql my friend has it but wont give it
Reply

#6
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. }
Reply

#7
nm got it working Wink
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#8
hillbilly can you send me the code please? or a plugin please
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 4,063 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,615 11-08-2013, 05:25
Last Post: [HARD] Tony.
  [Release] [SOURCE] DOOR V2.0 [HARD] Tony. 5 5,253 09-26-2013, 14:01
Last Post: Nekochan
  [source] medic E-losev 6 5,706 07-26-2013, 06:18
Last Post: E-losev
  [source] vAmpIr E-losev 5 4,867 07-25-2013, 16:28
Last Post: Bandarigoda123
  [Release] Barata's REAL External Console Source C# barata 37 22,325 06-28-2013, 23:47
Last Post: barata
  Help DONATE points for weapons [HARD] Tony. 10 7,297 05-24-2013, 10:59
Last Post: Pozzuh
Brick [Release] Health on HUD (no crash :D) xtreme2010 3 6,139 04-21-2013, 00:20
Last Post: CHRISLUVMSR
  [Release] Shoutbot + source JariZ 11 7,150 04-05-2013, 18:15
Last Post: SuperNovaAO
Rainbow [News] Valve strikes again (Source Filmmaker) estebespt 25 13,202 04-05-2013, 18:15
Last Post: SuperNovaAO

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.