Most visitors online was 11705 , on 26 Apr 2024
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!#define MAX_COMMAND 32
enum eCommandNumber
{
// here is my commands
COMMAND_CHECK = 32
};
void CommandChecking(LPOBJ lpObj);
void CCommandManager::Init() // OK
{ // Here my code and I added this line:
this->Add("/check",COMMAND_CHECK);
//
void CCommandManager::CommandChecking(LPOBJ lpObj) // OK
{ if(gGameMaster.CheckGameMasterLevel(lpObj,gServerInfo.m_CommandHideGameMasterLevel) == 0)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,"You are not a GameMaster");
return;
}
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,"You have %d %% Critical Damage Rate",lpObj->CriticalDamageRate);
}