Anti Weapon Hacks, Flooding Chat
#10

Quote:
Originally Posted by LarzI
Посмотреть сообщение
You could break the loop when you've found the cheater anyway, as there's no need to check through the rest of the weapons.


Like this:
pawn Код:
for (new c = 0; c < 13; c++)
{
    GetPlayerWeaponData(i, c, weaponid, ammo);
    if (weaponid != 0 && ammo != 0)
    {
        if (ScriptWeapons[i][c] != weaponid)
        {
            new weapon[24]; GetWeaponName(weaponid, weapon, 24);
            GetPlayerName(i, plname, sizeof(plname));

            format(string, sizeof(string), "[AC]: %s (%d) Is possibly Using Weapon Hacks; Use /spec and check him!", plname, i);
            SendAdminMessage(COLOR_YELLOW, string);
            break;
        }
    }
}
That still spams....
Reply


Messages In This Thread
Anti Weapon Hacks, Flooding Chat - by UnknownGamer - 03.12.2012, 11:15
Re: Anti Weapon Hacks, Flooding Chat - by gtakillerIV - 03.12.2012, 11:17
Re: Anti Weapon Hacks, Flooding Chat - by N0FeaR - 03.12.2012, 11:19
Re: Anti Weapon Hacks, Flooding Chat - by UnknownGamer - 03.12.2012, 11:27
Re: Anti Weapon Hacks, Flooding Chat - by Randy More - 03.12.2012, 13:45
Re: Anti Weapon Hacks, Flooding Chat - by UnknownGamer - 05.12.2012, 00:30
Re: Anti Weapon Hacks, Flooding Chat - by Kreyg - 05.12.2012, 00:56
Re: Anti Weapon Hacks, Flooding Chat - by UnknownGamer - 05.12.2012, 00:59
Re: Anti Weapon Hacks, Flooding Chat - by LarzI - 05.12.2012, 01:19
Re: Anti Weapon Hacks, Flooding Chat - by UnknownGamer - 05.12.2012, 01:29

Forum Jump:


Users browsing this thread: 1 Guest(s)