Nigga
Administrator
Dołączył: 18 Mar 2008
Posty: 43
Przeczytał: 0 tematów
Ostrzeżeń: 0/5
|
Wysłany: Wto 14:03, 25 Mar 2008 Temat postu: [CODE] /checkpoints |
|
|
En GAME.H agregar:
Kod: |
void PlayerOrder_CheckPoints(int iClientH, char *pData,DWORD dwMsgSize); |
En GAME.CPP agregar:
Kod: |
if (memcmp(cp, "/checkpoints", 12) == 0) {
PlayerOrder_CheckPoints(iClientH,cp, dwMsgSize - 21);
return;
} |
Al Final:
Kod: |
void CGame::PlayerOrder_CheckPoints(int iClientH)
{
char cMsg[50];
if (m_pClientList[iClientH] == NULL) return;
ZeroMemory(cMsg, sizeof(cMsg));
wsprintf(cMsg, "You have %d majestic point(s).", m_pClientList[iClientH]->m_iGizonItemUpgradeLeft);
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_NOTICEMSG, NULL, NULL, NULL, cMsg);
} |
Post został pochwalony 0 razy
|
|