Advertisement
Brainsucker

Untitled

Jan 14th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | None | 0 0
  1. import es
  2. import playerlib
  3. import cmdlib
  4.  
  5. deactivated = set()
  6.  
  7. def load():
  8.     cmdlib.registerSayCommand('!boost', boost, '...')
  9.  
  10. def unload():
  11.     cmdlib.unregisterSayCommand('!speed') # "!speed" ??! Nicht "!boost"?
  12.  
  13. def boost(userid, args):
  14.     steamid = es.getplayersteamid(userid)
  15.     if steamid in deactivated:
  16.         deactivated.discard(steamid)
  17.         es.tell(userid, '\x070040FF[OneGaming]: \x07FFD700Du hast deinen Boost: \x07FF0000angeschalten!')
  18.     else:
  19.         deactivated.add(steamid)
  20.         es.tell(userid, '\x070040FF[OneGaming]: \x07FFD700Du hast deinen Boost: \x07FF0000ausgeschalten!')
  21.    
  22. def player_jump(ev):
  23.     if ev['es_steamid'] not in deactivated:
  24.         playerlib.getPlayer(ev['userid']).push(40, 0, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement