cmdchangemap.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:7k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. #include "stdafx.h"
  2. #include "XmudOS.h"
  3. #include "CommandCheck.h"
  4. #include "CmdPlayerLogon.h"
  5. #include "MapMapInfo.h"
  6. #include "common.h"
  7. #include "NpcNpc.h"
  8. extern rmfullglobals myglobs;
  9. extern CList <TClientConData *,TClientConData* >playersocketlist;
  10. extern CList <CBaseMap*,CBaseMap*>maplist;
  11. void CCommandCheck::ChangeMapProc(char* PlayerName,char* sMapName,char* Result,
  12.   LPVOID pvPlayer,sockaddr_in IPAddr)
  13. {
  14. CPlayerInfo *lpPlayerInfo;
  15. char szTemp[256];
  16. lpPlayerInfo = (CPlayerInfo*)pvPlayer;
  17. if (lpPlayerInfo == NULL) {
  18. AddRecordMsg("ERROR NULL pointer in ChangeMapProc, lpPlayerInfo");
  19. return;
  20. }
  21. if(lpPlayerInfo->nStatus != AOS_none){
  22. sprintf(szTemp,"%s FAIL