Advertisement
Mister_Stefan

HL IND V1 (OT)

Mar 20th, 2022
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var y = Render.GetScreenSize()[1];
  2.  
  3. function main(){
  4. var font = Render.GetFont( "Verdana.ttf", 20, true);
  5. var font2 = Render.GetFont( "boxrocket.ttf", 65, true);
  6. var me = Entity.GetLocalPlayer();
  7. var health = Entity.GetProp(me,"CBasePlayer", "m_iHealth");
  8. var armor = Entity.GetProp(Entity.GetLocalPlayer(), "CCSPlayerResource", "m_iArmor");
  9. var healthtext = ""+ health;
  10. var armortext = ""+ armor;
  11. var max1 = [ 0, 0, 0, 80];
  12. var max2 = [ 255, 150, 0 , 255];
  13. var server = World.GetServerString();
  14.  
  15. if(server == ""){
  16.     Render.FilledRect( 430+270, y-150, 250, 85, [ 0, 0, 0, 0] );
  17. Render.String (445+280, y - 105, 0, "SUIT", [ 255, 150, 0 , 0],font);
  18. Render.String (560+270, y - 145, 0, armortext, [ 255, 150, 0 , 0],font2);
  19. Render.FilledRect( 430, y-150, 250, 85, [ 255, 0, 0, 0] );
  20.     Render.String (445, y - 105, 0, "HEALTH", [ 255, 150, 0 , 0],font);
  21.     Render.String (560, y - 145, 0, healthtext, [ 255, 150, 0 , 0],font2);
  22. }else{
  23. if(armortext == 0){
  24. Render.FilledRect( 430+270, y-150, 250, 85, [ 0, 0, 0, 0] );
  25. Render.String (445+280, y - 105, 0, "SUIT", [ 255, 150, 0 , 0],font);
  26. Render.String (560+270, y - 145, 0, armortext, [ 255, 150, 0 , 0],font2);
  27. }else{
  28. Render.FilledRect( 430+270, y-150, 250, 85, [ 0, 0, 0, 80] );
  29. Render.String (445+280, y - 105, 0, "SUIT", [ 255, 150, 0 , 255],font);
  30. Render.String (560+270, y - 145, 0, armortext, [ 255, 150, 0 , 255],font2);
  31. }
  32.  
  33. if(healthtext <=20){
  34. Render.FilledRect( 430, y-150, 250, 85, [ 255, 0, 0, 80] );
  35.     Render.String (445, y - 105, 0, "HEALTH", [ 255, 150, 0 , 255],font);
  36.     Render.String (560, y - 145, 0, healthtext, [ 255, 150, 0 , 255],font2);
  37. }else{
  38. Render.FilledRect( 430, y-150, 250, 85, [ 0, 0, 0, 80] );
  39.     Render.String (445, y - 105, 0, "HEALTH", [ 255, 150, 0 , 255],font);
  40.     Render.String (560, y - 145, 0, healthtext, [ 255, 150, 0 , 255],font2);
  41.  
  42. }
  43. }
  44.  
  45.  
  46.  
  47. }
  48.  
  49.  
  50. Cheat.RegisterCallback("Draw", "main")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement