Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.15 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 game():
  12.     while INTEGER.Client == True:
  13.         try:
  14.             if keyboard.is_pressed("INSERT"):
  15.                 INTEGER.HP = INTEGER.HP - 2
  16.         except:
  17.             INTEGER.HP = INTEGER.HP -9
  18.         if INTEGER.HP < 0:
  19.             try:
  20.                 INTEGER.HP = 0
  21.                 system("clear")
  22.             except:
  23.                 INTEGER.HP = 0
  24.                 system("cls")
  25.             print("YOU DEAD")
  26.             INTEGER.Client = False
  27.            
  28.         print("HP VALUE: " , INTEGER.HP)
  29.         print("ARMOR VALUE: " , INTEGER.ARMOR)
  30.         print("BULLETS: " , INTEGER.BULLETS)
  31.         print()
  32.         sleep(1)
  33.         if INTEGER.Client == True:
  34.             system("clear")
  35. def VAC():
  36.     while INTEGER.Client == True:
  37.         try:
  38.             if INTEGER.HP > 100:
  39.                 print("VAC BANNED")
  40.                 INTEGER.Client = False
  41.             elif INTEGER.ARMOR > 100:
  42.                 print("VAC BANNED")
  43.                 INTEGER.Client= False
  44.             elif INTEGER.BULLETS > 120:
  45.                 print("VAC BANNED")
  46.                 INTEGER.Client = False
  47.         except:
  48.             system("clear")
  49.             print("Please reinstall this program.")
  50.             INTEGER.Client = False
  51. Thread(target=game).start()
  52. Thread(target=VAC).start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement