示例#1
0
def unload():
    es.unregsaycmd(scfg.say_command_prefix + scfg.command_help)
    for userid in pending:
        gamethread.cancelDelayed('xs_delayed_%s' % userid) 
    for addon in addonsunloaders:
        addon()
    unloadCommands()
示例#2
0
def unload():
    es.unregsaycmd('!quake')
    es.addons.unregisterForEvent(quake_sounds_module, 'player_changename')
    es.addons.unregisterForEvent(quake_sounds_module, 'player_info')
    es.addons.unregisterForEvent(quake_sounds_module, 'player_say')
    es.addons.unregisterForEvent(quake_sounds_module, 'round_freeze_end')
    es.addons.unregisterForEvent(quake_sounds_module, 'round_end')
    es.addons.unregisterForEvent(quake_sounds_module, 'bomb_planted')
    es.addons.unregisterForEvent(quake_sounds_module, 'bomb_defused')
    es.msg('#multi', '#green[QuakeSounds] #defaultUnloaded')
示例#3
0
def unload():
    es.unregsaycmd('!quake')
    es.addons.unregisterForEvent(quake_sounds_module, 'player_changename')
    es.addons.unregisterForEvent(quake_sounds_module, 'player_info')
    es.addons.unregisterForEvent(quake_sounds_module, 'player_say')
    es.addons.unregisterForEvent(quake_sounds_module, 'round_freeze_end')
    es.addons.unregisterForEvent(quake_sounds_module, 'round_end')
    es.addons.unregisterForEvent(quake_sounds_module, 'bomb_planted')
    es.addons.unregisterForEvent(quake_sounds_module, 'bomb_defused')
    es.msg('#multi', '#green[QuakeSounds] #defaultUnloaded')
示例#4
0
def unload():

    es.unregsaycmd('batmenu')

    bat_menu.delete()

    bat_menu_pistols.delete()

    bat_menu_smg.delete()

    bat_menu_rifles.delete()
示例#5
0
def unload():

    es.unregsaycmd('batmenu')

    bat_menu.delete()

    bat_menu_pistols.delete()

    bat_menu_smg.delete()

    bat_menu_rifles.delete()
示例#6
0
def unload():
    es.unregclientcmd('timeleft')
    es.unregclientcmd('ma_timeleft')
    es.unregclientcmd('nextmap')
    es.unregclientcmd('ma_nextmap')
    es.unregclientcmd('listmaps')
    es.unregsaycmd('ff')
    es.unregsaycmd('@timeleft')
    es.unregsaycmd('@nextmap')
    es.unregsaycmd('@listmaps')
示例#7
0
 def unregisterSayCommand(self, name):
    """ Unregisters a say command """
    name = str(name).lower()
    if name in self.say_commands:
       es.unregsaycmd(name)
       del self.say_commands[name]
示例#8
0
 def tearDown(self):
   es.unregsaycmd("pycommand")
   es.unregclientcmd("pycommand")
示例#9
0
def unloadCommands():
    for saycmd in reggedscmd:
        es.unregsaycmd(saycmd)
    for clientcmd in reggedccmd:
        es.unregclientcmd(clientcmd)
示例#10
0
 def unregisterSayCommand(self, name):
    """ Unregisters a say command """
    name = str(name).lower()
    if name in self.say_commands:
       es.unregsaycmd(name)
       del self.say_commands[name]
示例#11
0
def unload():
    cmdlib.unregisterServerCommand("wcs_myracemenu")
    es.unregclientcmd('myraces')
    es.unregsaycmd('myraces')
 def tearDown(self):
     es.unregsaycmd("pycommand")
     es.unregclientcmd("pycommand")
def unregsaycmd(argv):
  if not es.exists('saycommand', argv[0]):
    raise ValueError, 'did not find command: %s' % argv[0]
  es.unregsaycmd(argv[0])
示例#14
0
def unload():
    es.unregsaycmd('!points')
    gamethread.cancelDelayed('timer')
    writefile()
    msg("unloaded")
def unregsaycmd(argv):
    if not es.exists('saycommand', argv[0]):
        raise ValueError('did not find command: %s' % argv[0])
    es.unregsaycmd(argv[0])
示例#16
0
def unload():
    es.unregsaycmd('!points')
    msg("unloaded")