sfcnr/gamemodes/irresistible/sampac.pwn

50 lines
1.5 KiB
Plaintext
Raw Normal View History

/*
* Irresistible Gaming (c) 2018
* Developed by Lorenc Pekaj
* Module:
* Purpose:
*/
/* ** Includes ** */
#include < YSI\y_hooks >
#include < sampcac >
/* ** Definitions ** */
#define AC_WEBSITE "www.sampcac.xyz"
#define IsPlayerUsingSampAC CAC_GetStatus
/* ** Variables ** */
new const
g_szCheatNames [ ] [ ] =
{
2018-09-16 19:57:14 +00:00
"Aimbot (1)", "Aimbot (2)", "Triggerbot (1)", "Triggerbot (2)", "Nametag wallhack (1)", "ESP (1)", "Macro keybind (1)",
"Fake ping (1)", "Weapon info (1)", "No recoil (1)", "No recoil (2)", "Aimbot (3)", "Aimbot (4)", "CLEO", "Aimbot (5)", "Aimbot (6)",
"No recoil (3)", "Untrusted (1)", "Untrusted (2)", "Untrusted (3)", "Untrusted (4)"
}
;
/* ** Hooks ** */
hook OnGameModeInit( )
{
CAC_SetGameOptionStatus( CAC_GAMEOPTION__SPRINT, CAC_GAMEOPTION_STATUS__SPRINT_ALLSURFACES );
// CAC_SetGameOptionStatus( CAC_GAMEOPTION__INFINITESPRINT, 1 );
return 1;
}
/* ** Callbacks ** */
function OnPlayerCheat( player_id, cheat_id )
{
new
playerName[MAX_PLAYER_NAME] = "*not connected*";
if ( IsPlayerConnected( player_id ) ) {
GetPlayerName( player_id, playerName, sizeof( playerName ) );
}
// 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 ] );
SendClientMessageToAdmins( COLOR_PINK, szNormalString );
print( szNormalString );
return 1;
}