Nigga |
Wysłany: Wto 14:01, 25 Mar 2008 Temat postu: [CODE] /desbug |
|
EN GAME.CPP:
Kod: |
if (memcmp(cp, "/desbug ", 6) == 0) {
AdminOrder_Desbug(iClientH);
return;
} |
Y ALFINAL DE TODO AGREGAR:
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");
}
} |
EN GAME.H:
Kod: |
void AdminOrder_Desbug(int iClientH); |
|
|