Advertisement
Mister_Stefan

HL IND V2 (OT)

Mar 20th, 2022
782
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var y = Render.GetScreenSize()[1];
  2.  
  3. function HSVtoRGB(h, s, v)
  4. {
  5.     var r, g, b, i, f, p, q, t;
  6.  
  7.     i = Math.floor(h * 6);
  8.     f = h * 6 - i;
  9.     p = v * (1 - s);
  10.     q = v * (1 - f * s);
  11.     t = v * (1 - (1 - f) * s);
  12.  
  13.     switch (i % 6)
  14.     {
  15.         case 0: r = v, g = t, b = p; break;
  16.         case 1: r = q, g = v, b = p; break;
  17.         case 2: r = p, g = v, b = t; break;
  18.         case 3: r = p, g = q, b = v; break;
  19.         case 4: r = t, g = p, b = v; break;
  20.         case 5: r = v, g = p, b = q; break;
  21.     }
  22.  
  23.     return { r: Math.round(r * 255), g: Math.round(g * 255), b: Math.round(b * 255) };
  24. }
  25. var oldTick = Global.Tickcount()
  26. var ticksToDelay = 1
  27.  
  28. function main(){
  29. var tickcount = Global.Tickcount() * 2.1;
  30. var alpha = 255
  31. var min_alpha = 255
  32. var font = Render.GetFont( "Verdana.ttf", 20, true);
  33. var font3 = Render.GetFont( "Verdana.ttf", 70, true);
  34. var font2 = Render.GetFont( "boxrocket.ttf", 65, true);
  35. var me = Entity.GetLocalPlayer();
  36. var health = Entity.GetProp(me,"CBasePlayer", "m_iHealth");
  37. var armor = Entity.GetProp(Entity.GetLocalPlayer(), "CCSPlayerResource", "m_iArmor");
  38. var healthtext = ""+ health;
  39. var armortext = ""+ armor;
  40. var max1 = [ 0, 0, 0, 80];
  41. var max2 = [ 255, 150, 0 , 255];
  42. var server = World.GetServerString();
  43. var colors = HSVtoRGB(tickcount % 350 / 350, 1, 1, 1, 255);
  44.  
  45. if(server == ""){
  46.     Render.FilledRect( 430+270, y-150, 250, 85, [ 0, 0, 0, 0] );
  47. Render.String (445+280, y - 105, 0, "SUIT", [ 255, 150, 0 , 0],font);
  48. Render.String (560+270, y - 145, 0, armortext, [ 255, 150, 0 , 0],font2);
  49. Render.FilledRect( 430, y-150, 250, 85, [ 255, 0, 0, 0] );
  50.     Render.String (445, y - 105, 0, "HEALTH", [ 255, 150, 0 , 0],font);
  51.     Render.String (560, y - 145, 0, healthtext, [ 255, 150, 0 , 0],font2);
  52. }else{
  53. if(armortext == 0){
  54. Render.FilledRect( 430+270, y-150, 250, 85, [ 0, 0, 0, 0] );
  55. Render.String (445+280, y - 105, 0, "SUIT", [ 255, 150, 0 , 0],font);
  56. Render.String (560+270, y - 145, 0, armortext, [ 255, 150, 0 , 0],font2);
  57. }else{
  58. Render.FilledRect( 430+270, y-150, 250, 85, [ 0, 0, 0, 80] );
  59. Render.String (445+280, y - 105, 0, "SUIT", [ 255, 150, 0 , 255],font);
  60. Render.String (560+270, y - 145, 0, armortext, [ 255, 150, 0 , 255],font2);
  61. }
  62.  
  63.  
  64. if(healthtext <=30){
  65. Render.FilledRect( 430, y-150, 250, 85, [ 255, 0, 0, 80] );
  66.     Render.String (445, y - 105, 0, "HEALTH", [ 255, 150, 0 , 255],font);
  67.     Render.String (560, y - 145, 0, healthtext, [ 255, 150, 0 , 255],font2);
  68. }else{
  69. Render.FilledRect( 430, y-150, 250, 85, [ 0, 0, 0, 80] );
  70.     Render.String (445, y - 105, 0, "HEALTH", [ 255, 150, 0 , 255],font);
  71.     Render.String (560, y - 145, 0, healthtext, [ 255, 150, 0 , 255],font2);
  72.  
  73.      }
  74.    
  75.    
  76.      if(healthtext ==0){
  77.          Render.String (445+550, y - 155, 0, "FAILURE", [ colors.r, colors.g, colors.b, 255 ],font3);
  78.      }
  79. }
  80.  
  81.  
  82.  
  83. }
  84.  
  85.  
  86. Cheat.RegisterCallback("Draw", "main")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement