Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import random
  2. import keyboard
  3. import time
  4.  
  5. MAPS = [
  6. 'la',
  7. 'dockside',
  8. 'carrier',
  9. 'drone',
  10. 'express',
  11. 'hijacked',
  12. 'meltdown',
  13. 'overflow',
  14. 'nightclub',
  15. 'raid',
  16. 'slums',
  17. 'village',
  18. 'turbine',
  19. 'socotra',
  20. 'nuketown_2020',
  21. 'downhill',
  22. 'mirage',
  23. 'hydro',
  24. 'skate',
  25. 'concert',
  26. 'magma',
  27. 'vertigo',
  28. 'studio',
  29. 'uplink',
  30. 'bridge',
  31. 'castaway',
  32. 'paintball',
  33. 'dig',
  34. 'frostbite',
  35. 'pod',
  36. 'takeoff'
  37. ]
  38.  
  39.  
  40. def restart():
  41. keyboard.press_and_release('`')
  42. time.sleep(.1)
  43. keyboard.write('map mp_' + random.choice(MAPS))
  44. keyboard.press_and_release('enter')
  45.  
  46.  
  47. keyboard.add_hotkey('F10', restart)
  48. keyboard.wait()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement