hells.xt.pl
Gość
|
Wysłany: Nie 17:39, 20 Kwi 2008 Temat postu: Anti-Cast Hack |
|
|
buscar:
Código:
Kod: |
void CGame::PlayerMagicHandler(int iClientH, int dX, int dY, short sType, BOOL bItemEffect, int iV1) |
abajo de:
Código:
Kod: |
if (((dwTime - m_pClientList[iClientH]->m_dwRecentAttackTime) < 1000) && (bItemEffect == 0) &&
(m_pClientList[iClientH]->m_iAdminUserLevel == 0)) {
//mag-en00b tweak, part 3 of "gm wont get dc when casting too fast"
wsprintf(G_cTxt, "3.51 Detection: (%s) Player: (%s) - Magic casting speed is too fast! Hack?", m_pClientList[iClientH]->m_cIPaddress, m_pClientList[iClientH]->m_cCharName);
PutHackLogFileList(G_cTxt);
DeleteClient(iClientH, TRUE, TRUE);
return;
}
|
agregar:
Código:
Kod: |
if (((dwTime - m_pClientList[iClientH]->m_dwRecentMagicAttackz) < 800) && (bItemEffect == 0) &&
(m_pClientList[iClientH]->m_iAdminUserLevel == 0)) {
wsprintf(G_cTxt, "Cast Hack Detection: (%s) Player: (%s) - Magic casting speed is too fast! HACK", m_pClientList[iClientH]->m_cIPaddress, m_pClientList[iClientH]->m_cCharName);
PutHackLogFileList(G_cTxt);
DeleteClient(iClientH, TRUE, TRUE);
return;
} |
abajo de:
Código:
Kod: |
m_pClientList[iClientH]->m_dwRecentAttackTime = dwTime;
agregar;
|
Código:
Kod: |
m_pClientList[iClientH]->m_dwRecentMagicAttackz = dwTime; |
y en Client.H:
Código:
Kod: |
DWORD m_dwRecentMagicAttackz; |
------------
|
|