xdh
2018-11-19 76aaa2bc9a47e1896638740312affe1ec61f2334
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/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