xdh
2019-02-12 5affad5d239f5fed725f5992ebab08c6da59c090
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ExitFB.py
@@ -24,6 +24,16 @@
#  @return None
#  @remarks 函数详细说明.
def OnExec(curPlayer, paramList):
    ChPlayer.__Func_ExitFB(curPlayer, GameWorld.GetGameWorld().GetTick())
    tick = GameWorld.GetGameWorld().GetTick()
    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