daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest May 17th, 2018 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import es
  2. import advertlib
  3. from datetime import timedelta
  4.  
  5.  
  6. a1 = advertlib.ChatAdvert('afk_advert', 'Schreibe $color!afk $colorum AFK zu gehen.')
  7. a1.colors = ['#green', '#default']
  8. a1.min_interval = timedelta(minutes=2)
  9. a1.enabled = True
  10.  
  11.  
  12. def unload():
  13.     global a1
  14.     del a1
  15.  
  16. def player_say(ev):
  17.     text = ev['text']
  18.     userid = ev['userid']
  19.     userteam = ev['es_userteam']
  20.     if text.lower() == '!afk':
  21.         if userteam != '1':
  22.             es.server.queuecmd('es_xchangeteam %s 1' % userid)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top