cmdchangemap.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:7k
- #include "stdafx.h"
- #include "XmudOS.h"
- #include "CommandCheck.h"
- #include "CmdPlayerLogon.h"
- #include "MapMapInfo.h"
- #include "common.h"
- #include "NpcNpc.h"
- extern rmfullglobals myglobs;
- extern CList <TClientConData *,TClientConData* >playersocketlist;
- extern CList <CBaseMap*,CBaseMap*>maplist;
- void CCommandCheck::ChangeMapProc(char* PlayerName,char* sMapName,char* Result,
- LPVOID pvPlayer,sockaddr_in IPAddr)
- {
- CPlayerInfo *lpPlayerInfo;
- char szTemp[256];
- lpPlayerInfo = (CPlayerInfo*)pvPlayer;
- if (lpPlayerInfo == NULL) {
- AddRecordMsg("ERROR NULL pointer in ChangeMapProc, lpPlayerInfo");
- return;
- }
- if(lpPlayerInfo->nStatus != AOS_none){
- sprintf(szTemp,"%s FAIL