Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########################
- #####WAIT CT REWRITTEN##
- ##### BY JACKMASTER#####
- ########################
- import es
- import cPickle
- addonpath = es.getAddonPath("CTWait").replace("\\", "/")
- dbpath = addonpath + "/CTWait.db"
- need_rounds = 50
- rounds = {}
- try:
- rounds = cPickle.load(open(dbpath, "rb"))
- except:
- pass
- def round_start(ev):
- userid = ev['userid']
- steamid = ev['es_steamid']
- if not rounds = need_rounds:
- rounds.append(steamid)
- cPickle.dump(rounds, open(dbpath, "wb"))
- def player_team(ev):
- userid = ev['userid']
- team = es.getplayerteam(userid)
- if team == 3:
- if need_rounds in rounds:
- pass
- else:
- es.tell(userid, 'Du kannst dem CT Team nicht joinen')
- def unload():
- cPickle.dump(rounds, open(dbpath, "wb"))
- ########################
- #####WAIT CT REWRITTEN##
- ##### BY JACKMASTER#####
- ########################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement