[req]codes For Auto Delete Drops

Submit your code requests, and if you are good at coding come help others with their requests.
Post Reply
Pollof
noob
Posts: 15
Joined: Sat Jan 14, 2006 5:51 pm

Post by Pollof »

I need that codes... can some1 give me it please ? its like the locobans server...

Thx...

Edit: I found something... can be these ?

Code: Select all

void CGame::AdminOrder_AutoCleanMap(int iClientH, char *pData, DWORD dwMsgSize)
{
 char   seps[] = "= \t\n";
 char   * token, cBuff[256]; 
 class  CStrTok * pStrTok;

	if (m_pClientList[iClientH] == NULL) return;
	if ((dwMsgSize)	<= 0) return;

	if (m_pClientList[iClientH]->m_iAdminUserLevel < m_iAdminLevelAutoMapClean) {
  // Admin user level too low
  SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_ADMINUSERLEVELLOW, NULL, NULL, NULL, NULL);
  return;
	}

	ZeroMemory(cBuff, sizeof(cBuff));
	memcpy(cBuff, pData, dwMsgSize);

	pStrTok = new class CStrTok(cBuff, seps);
	token = pStrTok->pGet();
	token = pStrTok->pGet();

	if (token != NULL) {
  if (token[0] == '1') m_bEnableAutoClean = TRUE;
  else
  if (token[0] == '0') m_bEnableAutoClean = FALSE;
	}

	delete pStrTok;
}
Firestorm
Loyal fan
Posts: 260
Joined: Fri Apr 07, 2006 10:29 pm

Post by Firestorm »

Check this post:

<a href='index.php?showtopic=6504' target='_blank'>index.php?showtopic=6504</a>

KLKS wrote down his code for Auto clean maps...
Post Reply