[Solved]A little help.
#5

Quote:
Originally Posted by MoroJr™
pastebin please
You can't read the pawn tags above? And from what you know, I doubt you can help at all.


Quote:
Originally Posted by Clum`
Quote:
Originally Posted by Fatal
pawn Код:
public AntiCheat(playerid)
{
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {  
                new gun,ammo;
                for(new w; w < 13; w++)
                {
                    GetPlayerWeaponData(i,w,gun,ammo);
                    if(gun) // Huh?
                    {
                        for(new g; g < sizeof(HackWeapons); g++)
                        {
                            if(gun == HackWeapons[g])
                            {
                                JailPlayer(i);
                                new string[64];
                                format(string, sizeof(string), "[ANTI-CHEAT] %s has been kicked for weapon hacking!", pName(playerid));
                                KickLog(string);
                                SendClientMessageToAll(ADMIN_RED, string);
                                Kick(i);
                            }
                        }
                    }
                }
           }
      }    
}
The original code was by 90nine, I modified it a bit. You can ignore that, I'll remove it after getting this bugged fixed..
Reply


Messages In This Thread
[Solved]A little help. - by ReV. - 15.04.2009, 06:48
Re: A little help. - by Danut - 15.04.2009, 08:32
Re: A little help. - by Clum` - 15.04.2009, 08:49
Re: A little help. - by Weirdosport - 15.04.2009, 09:08
Re: A little help. - by ReV. - 15.04.2009, 09:15
Re: A little help. - by ReV. - 15.04.2009, 20:45

Forum Jump:


Users browsing this thread: 1 Guest(s)