Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward OnPlayerCheat( playerid, type, source, source2 );
- public OnPlayerCheat( playerid, type, source, source2 ) {
- switch( type ) {
- case DETECT_WEAPON_HACK: {
- if( antiCheatSS[ antiWeaponH ] == true ) {
- switch( antiCheatSS[ WeaponHRezimRada ] ) {
- case AC_ADMINPORUKA: {
- format( globalstring, sizeof( globalstring ), "[AG-AC] Moguc Weapon Hack || [%d]%s || %s", playerid, GetName( playerid ), WeapNames[ antiCheatCS[ playerid ][ TakenWeapon ] ] );
- AdminPoruka( ANTICHEAT, globalstring );
- ResetAllWeapons( playerid );
- }
- case AC_KICK: {
- format( globalstring, sizeof( globalstring ), "[AG-AC] %s je kickovan sa servera. Razlog: "col_white"Weapon hack", GetName( playerid ) );
- AdminPoruka( SVETLOCRVENA, globalstring );
- Kickovanje( playerid, ""COL_BC"Ti si kickovan sa servera. Razlog: "col_white"Weapon hack");
- }
- case AC_BAN: {
- ResetAllWeapons( playerid );
- antiCheatCS[ playerid ][ WeaponHack ]++;
- if( antiCheatCS[ playerid ][ WeaponHack ] >= 3 ) {
- format( globalstring, sizeof( globalstring ), "[AG-AC] %s je banovan sa servera. Razlog: "col_white"Weapon hack", GetName( playerid ) );
- AdminPoruka( SVETLOCRVENA, globalstring );
- CreateBanFile( playerid, "Weapon Hack", "AntiCheat" );
- Kickovanje( playerid, ""COL_BC"Ti si banovan sa servera. Razlog: "col_white"Weapon hack");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement