sfcnr/gamemodes/irresistible/sampac.pwn
Lorenc Pekaj cde58d1c67 bugfixes
2018-09-17 05:57:14 +10:00

50 lines
1.5 KiB
Plaintext

/*
* 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 [ ] [ ] =
{
"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;
}