Advertisement
Guest User

Untitled

a guest
Nov 5th, 2017
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. forward OnPlayerCheat( playerid, type, source, source2 );
  2. public OnPlayerCheat( playerid, type, source, source2 ) {
  3. switch( type ) {
  4. case DETECT_WEAPON_HACK: {
  5. if( antiCheatSS[ antiWeaponH ] == true ) {
  6. switch( antiCheatSS[ WeaponHRezimRada ] ) {
  7. case AC_ADMINPORUKA: {
  8.  
  9. format( globalstring, sizeof( globalstring ), "[AG-AC] Moguc Weapon Hack || [%d]%s || %s", playerid, GetName( playerid ), WeapNames[ antiCheatCS[ playerid ][ TakenWeapon ] ] );
  10. AdminPoruka( ANTICHEAT, globalstring );
  11.  
  12. ResetAllWeapons( playerid );
  13. }
  14. case AC_KICK: {
  15.  
  16. format( globalstring, sizeof( globalstring ), "[AG-AC] %s je kickovan sa servera. Razlog: "col_white"Weapon hack", GetName( playerid ) );
  17. AdminPoruka( SVETLOCRVENA, globalstring );
  18. Kickovanje( playerid, ""COL_BC"Ti si kickovan sa servera. Razlog: "col_white"Weapon hack");
  19.  
  20. }
  21. case AC_BAN: {
  22. ResetAllWeapons( playerid );
  23. antiCheatCS[ playerid ][ WeaponHack ]++;
  24. if( antiCheatCS[ playerid ][ WeaponHack ] >= 3 ) {
  25. format( globalstring, sizeof( globalstring ), "[AG-AC] %s je banovan sa servera. Razlog: "col_white"Weapon hack", GetName( playerid ) );
  26. AdminPoruka( SVETLOCRVENA, globalstring );
  27.  
  28. CreateBanFile( playerid, "Weapon Hack", "AntiCheat" );
  29.  
  30. Kickovanje( playerid, ""COL_BC"Ti si banovan sa servera. Razlog: "col_white"Weapon hack");
  31. }
  32. }
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement