Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.71 KB | None | 0 0
  1. /*
  2.  * Irresistible Gaming (c) 2018
  3.  * Developed by Lorenc
  4.  * Module: sampac.inc
  5.  * Purpose: 3rd party anticheat implementation (sampcac.xyz)
  6.  */
  7.  
  8. /* ** Includes ** */
  9. #include                            < YSI\y_hooks >
  10. #include                            < sampcac >
  11.  
  12. /* ** Definitions ** */
  13. #define AC_WEBSITE                  "www.sampcac.xyz"
  14. #define IsPlayerUsingSampAC         CAC_GetStatus
  15.  
  16. /* ** Variables ** */
  17. new const
  18.     g_szCheatNames                [ ] [ ] =
  19.     {
  20.         "Aimbot (1)", "Aimbot (2)", "Triggerbot (1)", "Triggerbot (2)", "Nametag wallhack (1)", "ESP (1)", "Macro keybind (1)",
  21.         "Fake ping (1)", "Weapon info (1)", "No recoil (1)", "No recoil (2)", "Aimbot (3)", "Aimbot (4)", "CLEO", "Aimbot (5)", "Aimbot (6)",
  22.         "No recoil (3)", "Untrusted (1)", "Untrusted (2)", "Untrusted (3)", "Untrusted (4)"
  23.     }
  24. ;
  25.  
  26. /* ** Hooks ** */
  27. hook OnGameModeInit( )
  28. {
  29.     CAC_SetGameOptionStatus( CAC_GAMEOPTION__SPRINT, CAC_GAMEOPTION_STATUS__SPRINT_ALLSURFACES );
  30.     // CAC_SetGameOptionStatus( CAC_GAMEOPTION__INFINITESPRINT, 1 );
  31.     return 1;
  32. }
  33.  
  34. /* ** Callbacks ** */
  35. function OnPlayerCheat( player_id, cheat_id )
  36. {
  37.     new
  38.         playerName[MAX_PLAYER_NAME] = "*not connected*";
  39.  
  40.     if ( IsPlayerConnected( player_id ) ) {
  41.         GetPlayerName( player_id, playerName, sizeof( playerName ) );
  42.     }
  43.  
  44.     if ( strmatch( g_szCheatNames[ cheat_id ], "Aimbot (6)" ) ) {
  45.         return 1; // ignore aimbot (6)
  46.     }
  47.  
  48.     // AdvancedBan( player_id, "Server", g_szCheatNames[ cheat_id ], ReturnPlayerIP( player_id ) );
  49.     format( szNormalString, sizeof( szNormalString ), "[ANTI-CHEAT]{FFFFFF} %s(%d) has been detected using %s.", playerName, player_id, g_szCheatNames[ cheat_id ] );
  50.     SendClientMessageToAdmins( COLOR_PINK, szNormalString );
  51.     print( szNormalString );
  52.     return 1;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement