hxp
2020-11-16 ca4de46e0beb47d7ec1dfa3817f59e2ba885bf76
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ExitFB.py
@@ -17,6 +17,8 @@
import GameWorld
import ChPlayer
import PlayerControl
import PlayerFB
## GM命令执行入口
#  @param curPlayer 当前玩家
@@ -24,6 +26,21 @@
#  @return None
#  @remarks 函数详细说明.
def OnExec(curPlayer, paramList):
    ChPlayer.__Func_ExitFB(curPlayer, GameWorld.GetGameWorld().GetTick())
    tick = GameWorld.GetGameWorld().GetTick()
    if PlayerControl.GetCustomMapID(curPlayer):
        PlayerFB.DoExitCustomScene(curPlayer)
        return
    isAll = paramList[0] if paramList else 0
    if isAll:
        copyMapPlayerManager = GameWorld.GetMapCopyPlayerManager()
        for i in xrange(copyMapPlayerManager.GetPlayerCount()):
            player = copyMapPlayerManager.GetPlayerByIndex(i)
            if player == None or player.IsEmpty():
                continue
            ChPlayer.__Func_ExitFB(player, tick)
        return
    ChPlayer.__Func_ExitFB(curPlayer, tick)
    return