Example #1
0
 def __init__(self, host, password):
     Q3ARcon.__init__(self, host, password)
     self._commands['saybig'] = 'bigtext "%(message)s"'
     self._commands['cyclemap'] = 'cyclemap'
     self._commands['slap'] = 'slap %(cid)s'
     self._commands['nuke'] = 'nuke %(cid)s'
     self._commands['mute'] = 'mute %(cid)s'
     self._commands['set'] = '%(name)s "%(value)s"'
Example #2
0
 def unban(self, *args):
     '''unban ip
     args: ip
     '''        
     r =  Q3ARcon.unban(self, *args)
     t1 = threading.Timer(1, self._unbanmultiple, (args[0],))
     t1.start()
     return r
Example #3
0
 def setGametype(self, *args):
     '''set new gametype
     args: 'ffa', 'tdm', 'ts', 'ftl', 'cah', 'ctf','bomb'
     '''
     data = self._gametype_set.get(args[0], None)
     if data:
         return Q3ARcon.setGametype(self, data)
     return None
Example #4
0
 def getGametype(self, *args):
     '''get current gametype
     args: None
     '''
     value = Q3ARcon.getGametype(self)
     if value:
         return self._gametype.get(value, None)
     return None