Anti Weapon Hack (heeeelppp)
#2

pawn Код:
public WeaponCheck(playerid)
{
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        new lbweapon[64];
        new string[128];
        new var;
        new PlayerName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);

        var=GetPlayerWeapon(i);
        if(IsForbiddenWeapon(var) && WeaponForbiddenForPlayer[i][var] && AccInfo[i][Level] == 0 && ServerInfo[ForbiddenWeaps] == 1)
        {
            SendClientMessage(i,lightred, "You have been Automatically Kicked.  Reason: WeaponHack  ");

            GetWeaponName(var,lbweapon,sizeof(lbweapon));

            format(string,sizeof(string),"Player %s (Id:%d) has been Automatically Kicked.  Reason: Weapons ",PlayerName,i);
            SendClientMessageToAll(lightred, string);

            new str[128];
            format(str,sizeof(str),"%s has been Automatically Kicked. Reason: WeaponHack",PlayerName);
            SaveIn("BanLog",str);
        }
    }
    return 1;
}
Should work
Reply


Messages In This Thread
Anti Weapon Hack (heeeelppp) - by ProdrifterX - 11.01.2012, 13:26
Re: Anti Weapon Hack (heeeelppp) - by Snowman12 - 11.01.2012, 13:28
Re: Anti Weapon Hack (heeeelppp) - by CmZxC - 11.01.2012, 13:32
Re: Anti Weapon Hack (heeeelppp) - by ProdrifterX - 11.01.2012, 13:39
Re: Anti Weapon Hack (heeeelppp) - by Snowman12 - 11.01.2012, 13:40
Re: Anti Weapon Hack (heeeelppp) - by ProdrifterX - 11.01.2012, 14:02
Re: Anti Weapon Hack (heeeelppp) - by ProdrifterX - 11.01.2012, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)