Anti-cheat didn't work
#7

pawn Код:
public WeaponCheck()
{
    new
        IP[16]
    ;
   
    for ( new i = 0; i < MAX_PLAYERS; i++) { //Loop.
       
        if(PlayerInfo[i][pAdmin] >= 1) return 0;
        if(WeaponGiven[i] == 1) return 0;
        if( Logged[i] == 1 )
        {
            if(GetPlayerWeapon(i) >= 1 && GetPlayerWeapon(i) <= 45) { //Is this just to test your anti cheat? Cause this will ban for all weapons..
               
                new
                    p_Name[24],
                    mystring[128]
                ;
               
                GetPlayerName( i, p_Name, sizeof( p_Name ));
                GetPlayerIp( i, IP, 16 );
                format( mystring, sizeof mystring, "Admin-Log: %s has been banned for weapon hack(%s).", p_Name, IP);
                SendAdminMessage( COLOR_RED, mystring );
                BanEx(i, "WEAPON HACK");
            }
        }
       
    }
    return 1;
}
Try that.
Reply


Messages In This Thread
Anti-cheat didn't work - by Bogdan1992 - 19.01.2012, 16:19
Re: Anti-cheat didn't work - by Sascha - 19.01.2012, 16:25
Re: Anti-cheat didn't work - by Michael@Belgium - 19.01.2012, 16:29
Re: Anti-cheat didn't work - by Bogdan1992 - 19.01.2012, 18:40
Re: Anti-cheat didn't work - by GamingTurf - 19.01.2012, 18:43
Re: Anti-cheat didn't work - by Bogdan1992 - 19.01.2012, 19:00
Re: Anti-cheat didn't work - by 2KY - 19.01.2012, 19:06
Re: Anti-cheat didn't work - by Vince - 19.01.2012, 19:09
Re: Anti-cheat didn't work - by Bogdan1992 - 19.01.2012, 19:12
Re: Anti-cheat didn't work - by Tigerkiller - 19.01.2012, 21:23

Forum Jump:


Users browsing this thread: 2 Guest(s)