Advertisement
Brainsucker

Untitled

May 25th, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.92 KB | None | 0 0
  1. import es
  2. import popuplib
  3.  
  4. ###Settings###
  5. votemenu_aufrufen = '!votemenu'
  6. ###Settings-ende###
  7.  
  8.  
  9.  
  10. def load():
  11.     global votemenu
  12.    
  13.     if popuplib.exists('votemenu'):
  14.         popuplib.delete('votemenu')
  15.    
  16.     votemenu = popuplib.easymenu('votemenu', None, choice_votemenu)
  17.     votemenu.settitle('votemenu by Jackmaster')
  18.     votemenu.addline('votekick', 'votekick')
  19.     votemenu.addline('voteban', 'voteban')
  20.     votemenu.addline('!votemute', 'votemute')
  21.     votemenu.addline('rtv', 'rock the vote')
  22.     votemenu.addline('votemap', 'votemap')
  23.     votemenu.addline('nominate', 'nominate')
  24.    
  25. def choice_votemenu(userid, choice, popupid):
  26.     es.server.queuecmd('es_xsexec %s "say %s"' % (userid, choice))
  27.    
  28. def round_start(ev):
  29.     es.msg('#multi', '#default[Votes]#lightgreenGib #default#green!votemenu#lightgreen in den Chat um das votemenu zuoeffnen!')
  30.    
  31. def player_say(ev):
  32.  
  33.     if ev['text'].lower() == votemenu_aufrufen:
  34.         votemenu.send(ev['userid'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement