SHARE
TWEET

Untitled

a guest Aug 13th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import es
  2. import popuplib
  3. import playerlib
  4. ########VIPs################
  5. skin_vip = ['STEAM_0:1:31341483']
  6. vip_aufrufen = '!c'
  7.  
  8. ############# by Jack#######
  9.  
  10.  
  11. def load():
  12.     global vipmenu
  13.        
  14.     if popuplib.exists('vipmenu'):
  15.         popuplib.delete('vipmenu')
  16.        
  17.     vipmenu = popuplib.create('vipmenu')
  18.     vipmenu.addline('VIP by Jackmaster')
  19.     vipmenu.addline('*****************')
  20.     vipmenu.addline('->1. Rot')
  21.     vipmenu.addline('->2. Gruen')
  22.     vipmenu.addline('->3. Schwarz')
  23.     vipmenu.addline('->4. Gelb')
  24.     vipmenu.addline('*****************')
  25.     vipmenu.menuselect = choice_vipmenu
  26.    
  27. def player_say(ev):
  28.         if ev['text'].lower() == vip_aufrufen:
  29.             if es.getplayersteamid(ev['userid']) in skin_vip:
  30.                 vipmenu.send(ev['userid'])
  31.             else:
  32.                 es.tell(ev['userid'], 'Du kannst diesen Befehl nicht ausfuehren, weil du kein pay VIP bist')
  33.                 es.tell(ev['userid'], 'Fuer Infos gib !features in den Chat ein')
  34.            
  35. def choice_vipmenu(userid, choice, popupid):
  36.    
  37.     if choice == 1:
  38.         p = playerlib.getPlayer(userid)
  39.         p.setColor(255, 0, 0, 255)
  40.         es.tell(userid, 'Du hast die Farbe rot gewaehlt')
  41.     if choice == 2:
  42.         es.server.queuecmd('ma_color %s 0 255 0 255'%ev['userid'])
  43.     if choice == 3:
  44.         es.server.queuecmd('ma_color %s 0 0 255 255'%ev['userid'])
  45.     if choice == 4:
  46.         es.server.queuecmd('ma_color %s 120 120 0 255'%ev['userid'])
  47.        
  48. def unload():
  49.    
  50.     vipmenu.delete()
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top