Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool IS_SPEED_HACK(LPCHARACTER ch, LPCHARACTER victim, DWORD current_time)
- {
- if (ch->m_kAttackLog.dwVID == victim->GetVID())
- {
- if (current_time - ch->m_kAttackLog.dwTime < GET_ATTACK_SPEED(ch))
- {
- INCREASE_SPEED_HACK_COUNT(ch);
- SET_ATTACK_TIME(ch, victim, current_time);
- SET_ATTACKED_TIME(ch, victim, current_time);
- return true;
- }
- }
- SET_ATTACK_TIME(ch, victim, current_time);
- if (victim->m_AttackedLog.dwPID == ch->GetPlayerID())
- {
- if (current_time - victim->m_AttackedLog.dwAttackedTime < GET_ATTACK_SPEED(ch))
- {
- INCREASE_SPEED_HACK_COUNT(ch);
- SET_ATTACKED_TIME(ch, victim, current_time);
- return true;
- }
- }
- SET_ATTACKED_TIME(ch, victim, current_time);
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement