Advertisement
Guest User

Untitled

a guest
May 28th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. @name EGP_Wallhack
  2. @inputs EGP:wirelink
  3. @outputs
  4. @persist [Ply BSR]:array Status:string H
  5. Max=egpMaxUmsgPerSecond()
  6. if (Max>30) {Max=30}
  7. interval(1000/Max)
  8.  
  9. if(first()|H!=players():count()|changed(EGP))
  10. {
  11. Font="Lucida Console"
  12. H=players():count()
  13. EGP:egpClear()
  14. Ply=players()
  15. for(I=1,Ply:count()){
  16. PL=Ply:entity(I)
  17. C1=I*10
  18. C2=I*10+1
  19. C3=I*10+2
  20. C4=I*10+3
  21. C5=I*10+4
  22. C6=I*10+5
  23. if(PL:isAdmin()){
  24. if(PL:isSuperAdmin()){
  25. Status="Super Admin"
  26. Col=vec(255,0,0)
  27. }
  28. else{
  29. Status="Admin"
  30. Col=vec(255,255,0)
  31. }
  32. }
  33. else{
  34. Status="Player"
  35. Col=vec(0,255,0)
  36. }
  37.  
  38. EGP:egp3DTracker(C1, PL:pos())
  39.  
  40. EGP:egpRoundedBox(C2,vec2(50,100),vec2())
  41. EGP:egpColor(C2,vec4(0,0,0,150))
  42.  
  43. S1=PL:name()
  44. EGP:egpText(C3,S1, vec2(0, 0))
  45. EGP:egpFont(C3,Font)
  46. EGP:egpSize(C3,10)
  47.  
  48. S2=Status
  49. EGP:egpText(C4,Status, vec2(0, 9))
  50. EGP:egpFont(C4,Font)
  51. EGP:egpColor(C4,Col)
  52. EGP:egpSize(C4,10)
  53.  
  54.  
  55. if(S1:length()>S2:length()){
  56. BS=S1:length()*7
  57. }else{
  58. BS=S2:length()*7
  59. }
  60. EGP:egpSize(C2,vec2(BS+20,40))
  61. EGP:egpPos(C2,vec2(EGP:egpSize(C2):x()/2-10,15))
  62.  
  63. EGP:egpBoxOutline(C5,vec2(BS/2,25),vec2(BS+3,10))
  64. EGP:egpColor(C5,vec(255,255,255))
  65.  
  66. EGP:egpBox(C6,vec2(0,25),vec2(0,6))
  67.  
  68. BSR[PL:id(),number]=BS
  69.  
  70. EGP:egpParent(C2,C1)
  71. EGP:egpParent(C3,C1)
  72. EGP:egpParent(C4,C1)
  73. EGP:egpParent(C5,C1)
  74. EGP:egpParent(C6,C1)
  75. }
  76.  
  77. }
  78.  
  79. for(I=1,Ply:count()){
  80. C1=I*10
  81. C3=I*10+2
  82. C6=I*10+5
  83. PL=Ply:entity(I)
  84. HP=clamp(PL:health(),0,100)
  85. #print(I+" "+PL:name())
  86. EGP:egp3DTracker(C1, PL:pos())
  87. EGP:egpPos(C1,PL:pos()+vec(0,0,40))
  88.  
  89. BS=BSR[PL:id(),number]
  90.  
  91. EGP:egpPos(C6,vec2(BS*(HP/100)-BS*(HP/100)/2,25.5))
  92. EGP:egpSize(C6,vec2(BS*(HP/100),8))
  93.  
  94. EGP:egpColor(C6,vec(255*((100-HP)/100),255*(HP/100),0))
  95.  
  96. EGP:egpColor(C3,teamColor(PL:team()))
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement