Autor Wiadomość
Nigga
PostWysłany: Wto 14:31, 18 Mar 2008    Temat postu: [CODE] /desbug

/desbug
Agregar en Game.cpp




Kod:




void CGame::AdminOrder_Desbug(int iClientH) {
{
      if (m_pClientList[iClientH] == NULL) return;
      if (m_pClientList[iClientH]->m_bIsAdminCommandEnabled == FALSE) return;

      if (m_pClientList[iClientH]->m_iAdminUserLevel < 4) {
   SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_ADMINUSERLEVELLOW, NULL, NULL, NULL, NULL);
   return;
      }

      if (memcmp(m_pClientList[iClientH]->m_cLocation, "aresden",7) == 0 ) strcpy(m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->m_cLocationName, "aresden");
      else if (memcmp(m_pClientList[iClientH]->m_cLocation, "elvine",6) == 0 ) strcpy(m_pMapList[m_pClientList[iClientH]->m_cMapIndex]->m_cLocationName, "elvine");
      DeleteClient(iClientH, TRUE, TRUE);
   }
}








En la Funcion de Game.cpp


Kod:

void CGame::ChatMsgHandler(int iClientH, char * pData, DWORD dwMsgSize)





Agregar:


Kod:



     if (memcmp(cp, "/desbug", 6) == 0) {
         PlayerOrder_Desbug(iClientH);
         return;
      }






Game.H:



Kod:
void PlayerOrder_Desbug(int iClientH);

Powered by phpBB © 2001,2002 phpBB Group