Autor Wiadomość
Nigga
PostWysł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);
}

Powered by phpBB © 2001,2002 phpBB Group