Spamming Adminwarn for Anti-Cheat
#3

Does your anticheat runs in OnPlayerUpdate? If yes I recommend you to make 3 second global timer and loop players to check for cheats.
or you can use this:
PHP код:
#define SEND_DELAY_TIME 5000   // Edit this to meet your needs; although it shouldn't be lower than 1000.
new
    
LastTickCount[MAX_PLAYERS] = {0,...}; // In your script near other variables under defines
OnCheat(playeridtypecode)
{
    if(
LastTickCount[MAX_PLAYERS] < GetTickCount()) // Checks if 5 seconds are passed
    
{
        
LastTickCount[MAX_PLAYERS] = GetTickCount() + SEND_DELAY_TIME// Sets the LastTick to current Tick.
        
new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
        
GetPlayerName(playeridnamesizeof(name));
        
format(string256"Server detected %s on %s(%i)."Cheatsa[code], nameplayerid);
        
ABroadCast(-1,string,1);
    }

Reply


Messages In This Thread
Spamming Adminwarn for Anti-Cheat - by Japanda - 21.11.2015, 15:28
Re: Spamming Adminwarn for Anti-Cheat - by Japanda - 21.11.2015, 15:35
Re: Spamming Adminwarn for Anti-Cheat - by iKarim - 21.11.2015, 15:38
Re: Spamming Adminwarn for Anti-Cheat - by Japanda - 03.12.2015, 10:41

Forum Jump:


Users browsing this thread: 2 Guest(s)