Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. from threading import Thread
  2. from os import system
  3. from time import sleep
  4. import keyboard
  5.  
  6. class INTEGER:
  7. HP = int(100)
  8. ARMOR = int(100)
  9. BULLETS = int(120)
  10. Client = True
  11. def bind():
  12. while INTEGER.Client == True:
  13. if keyboard.is_pressed("INSERT"):
  14. INTEGER.HP = INTEGER.HP - 2
  15. def game():
  16. while INTEGER.Client == True:
  17. if INTEGER.HP < 0:
  18. try:
  19. INTEGER.HP = 0
  20. system("clear")
  21. except:
  22. INTEGER.HP = 0
  23. system("cls")
  24. print("YOU DEAD")
  25. INTEGER.Client = False
  26.  
  27. print("HP VALUE: " , INTEGER.HP)
  28. print("ARMOR VALUE: " , INTEGER.ARMOR)
  29. print("BULLETS: " , INTEGER.BULLETS)
  30. print()
  31. sleep(1)
  32. if INTEGER.Client == True:
  33. try:
  34. system("clear")
  35. except:
  36. system("cls")
  37. def VAC():
  38. while INTEGER.Client == True:
  39. try:
  40. if INTEGER.HP > 100:
  41. print("VAC BANNED")
  42. INTEGER.Client = False
  43. elif INTEGER.ARMOR > 100:
  44. print("VAC BANNED")
  45. INTEGER.Client= False
  46. elif INTEGER.BULLETS > 120:
  47. print("VAC BANNED")
  48. INTEGER.Client = False
  49. except:
  50. try:
  51. system("clear")
  52. except:
  53. system("cls")
  54. print("Please reinstall this program.")
  55. INTEGER.Client = False
  56. Thread(target=game).start()
  57. Thread(target=VAC).start()
  58. Thread(target=bind).start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement