Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import es
- import playerlib
- import cmdlib
- deactivated = set()
- def load():
- cmdlib.registerSayCommand('!boost', boost, '...')
- def unload():
- cmdlib.unregisterSayCommand('!speed') # "!speed" ??! Nicht "!boost"?
- def boost(userid, args):
- steamid = es.getplayersteamid(userid)
- if steamid in deactivated:
- deactivated.discard(steamid)
- es.tell(userid, '\x070040FF[OneGaming]: \x07FFD700Du hast deinen Boost: \x07FF0000angeschalten!')
- else:
- deactivated.add(steamid)
- es.tell(userid, '\x070040FF[OneGaming]: \x07FFD700Du hast deinen Boost: \x07FF0000ausgeschalten!')
- def player_jump(ev):
- if ev['es_steamid'] not in deactivated:
- playerlib.getPlayer(ev['userid']).push(40, 0, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement