コード例 #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
ファイル: quake_sounds.py プロジェクト: madPO/es_plugin-depot
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
ファイル: block_crash.py プロジェクト: tsuehpsyde/SourceKills
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
ファイル: cmdlib.py プロジェクト: StarsGame/source_addons
 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
ファイル: pyunittest.py プロジェクト: StarsGame/source_addons
 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
ファイル: myraces.py プロジェクト: kamikazekuh/WCS_077_Remake
def unload():
    cmdlib.unregisterServerCommand("wcs_myracemenu")
    es.unregclientcmd('myraces')
    es.unregsaycmd('myraces')
コード例 #12
0
 def tearDown(self):
     es.unregsaycmd("pycommand")
     es.unregclientcmd("pycommand")
コード例 #13
0
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")
コード例 #15
0
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")