disable aimbot (6) detection

This commit is contained in:
Lorenc Pekaj 2018-09-20 19:31:42 +10:00
parent 64106e4748
commit bef383afd9

View File

@ -1,8 +1,8 @@
/* /*
* Irresistible Gaming (c) 2018 * Irresistible Gaming (c) 2018
* Developed by Lorenc Pekaj * Developed by Lorenc Pekaj
* Module: * Module: sampac.inc
* Purpose: * Purpose: 3rd party anticheat implementation (sampcac.xyz)
*/ */
/* ** Includes ** */ /* ** Includes ** */
@ -41,6 +41,10 @@ function OnPlayerCheat( player_id, cheat_id )
GetPlayerName( player_id, playerName, sizeof( playerName ) ); GetPlayerName( player_id, playerName, sizeof( playerName ) );
} }
if ( strmatch( g_szCheatNames[ cheat_id ], "Aimbot (6)" ) ) {
return 1; // ignore aimbot (6)
}
// AdvancedBan( player_id, "Server", g_szCheatNames[ cheat_id ], ReturnPlayerIP( player_id ) ); // AdvancedBan( player_id, "Server", g_szCheatNames[ cheat_id ], ReturnPlayerIP( player_id ) );
format( szNormalString, sizeof( szNormalString ), "[ANTI-CHEAT]{FFFFFF} %s(%d) has been detected using %s.", playerName, player_id, g_szCheatNames[ cheat_id ] ); format( szNormalString, sizeof( szNormalString ), "[ANTI-CHEAT]{FFFFFF} %s(%d) has been detected using %s.", playerName, player_id, g_szCheatNames[ cheat_id ] );
SendClientMessageToAdmins( COLOR_PINK, szNormalString ); SendClientMessageToAdmins( COLOR_PINK, szNormalString );