| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
| #  | 
| # @todo:   | 
| #  | 
| # @author: Alee  | 
| # @date 2018-1-6 ÏÂÎç03:40:13  | 
| # @version 1.0  | 
| #  | 
| # @note:   | 
| #  | 
| #---------------------------------------------------------------------  | 
|   | 
| import GameWorld  | 
| import PlayerControl  | 
|   | 
| #°ïÖúÃüÁî  | 
| ## Ö´ÐÐÂß¼  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param playerList []  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(curPlayer, paramList):  | 
|     GameWorld.DebugAnswer(curPlayer, 'Õ˺Š ID  ¶ÓÎé  µØÍ¼')  | 
|     playerManager = GameWorld.GetPlayerManager()  | 
|     activePlayerCount = playerManager.GetActivePlayerCount()  | 
|     count = 0  | 
|     for index in xrange(activePlayerCount):  | 
|         player = playerManager.GetActivePlayerAt(index)  | 
|         if player == None or not player.GetInitOK():  | 
|             continue  | 
|           | 
|         if not PlayerControl.GetIsTJG(player):  | 
|             continue  | 
|           | 
|         GameWorld.DebugAnswer(curPlayer, "%s - %s - %s - %s"%(player.GetAccID(), player.GetID(), player.GetTeamID(), player.GetMapID()))  | 
|         count += 1  | 
|           | 
|     GameWorld.DebugAnswer(curPlayer, "ÍÑ»ú¹ÒÍæ¼ÒÊý:%s"%count)  | 
|       | 
|        | 
|     return  | 
|   | 
|   |