#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
#-------------------------------------------------------------------------------
|
#
|
##@package GM.Commands.SetClientType
|
#
|
# @todo:ÉèÖÿͻ§¶ËµÇ¼ÀàÐÍ
|
# @author hxp
|
# @date 2014-08-14
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: ÉèÖÿͻ§¶ËµÇ¼ÀàÐÍ
|
#
|
#---------------------------------------------------------------------
|
"""Version = 2014-08-14 11:00"""
|
import GameWorld
|
|
## Ö´ÐÐÂß¼
|
# @param curPlayer µ±Ç°Íæ¼Ò
|
# @param gmList []
|
# @return None
|
def OnExec(curPlayer, gmList):
|
|
if len(gmList) != 1:
|
GameWorld.DebugAnswer(curPlayer, "²ÎÊý¸öÊý²»ºÏ·¨£ºSetClientType µÇ¼ÀàÐÍ(1-ä¯ÀÀÆ÷£»3-΢¶Ë)")
|
return
|
|
clientType = gmList[0]
|
# µÇ¼¿Í»§¶ËÀàÐÍ
|
resultName = str([clientType])
|
curPlayer.MapServer_QueryPlayerResult(0, 0, "LoginData", resultName, len(resultName))
|
GameWorld.DebugAnswer(curPlayer, "SetClientType %s OK!" % clientType)
|
return
|
|
|