| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
|   | 
| ##@package KillPlayer  | 
| # É±ËÀij¸öÍæ¼Ò <Íæ¼ÒID>  | 
| #  | 
| # @author Mark  | 
| # @date 2010-4-22  | 
| # @version 1.0  | 
| #  | 
| # ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ  | 
| # VER = "2010-05-12 18:30" zhengyang Ìí¼Ó×¢ÊÍ  | 
| #  | 
| # Ä£¿éÏêϸ˵Ã÷  | 
|   | 
| import GameWorld  | 
| import PlayerControl  | 
|   | 
| #Â߼ʵÏÖ  | 
| ## GMÃüÁîÖ´ÐÐÈë¿Ú  | 
| #  @param curPlayer µ±Ç°Íæ¼Ò  | 
| #  @param playerList ²ÎÊýÁбí [tagID]  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(curPlayer, list):  | 
| #===============================================================================  | 
| #    #¼ì²âµ±Ç°Íæ¼ÒÊÇ·ñÓÐȨÏÞ  | 
| #    #if   | 
| #    #µÚÒ»½×¶Î²»´¦Àí  | 
| #===============================================================================  | 
|       | 
|     #ÊäÈëÃüÁî¸ñʽ´íÎó  | 
|     if len(list)!=1:  | 
|         return  | 
|     #Íæ¼Ò¶ÔÏóID  | 
|     tagID = list[0]  | 
|     playerTag = GameWorld.GetPlayerManager().FindPlayerByID(tagID)  | 
|     if playerTag == None:  | 
|         #ÎÞ·¨ÕÒµ½Íæ¼Ò  | 
|         return  | 
|       | 
|     curPlayerControl = PlayerControl.PlayerControl(curPlayer)  | 
|     curPlayerControl.SetDead()  | 
|     | 
|           | 
|       | 
|       | 
|   |