Anti Weapon Hacks, Flooding Chat
#1

Hey guys, When someone weapon hacks, or false alarm. It sends messages, one after another.

Could you take a look at code, please, and fix?

pawn Код:
public PeterAC()
{
    new weaponid, ammo;
    new plname[64], string[256];
    new y, m, d;
    new h,mi,s;
    getdate(y,m,d);
    gettime(h,mi,s);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && !IsPlayerNPC(i))
        {
            GetPlayerName(i, plname, sizeof(plname));
            if(AntiWeaponHack == 1)
            {
                if (PlayerGotSpottedRecently[i] == 0)
                {
                    if(ScriptWeaponsUpdated[i] == 0)
                    {
                        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);
                                }
                            }
                        }
                    }
                }
            }
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)