Anti Weapon Hack (heeeelppp)
#1

PHP код:
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(playeridPlayerNameMAX_PLAYER_NAME);
        var=
GetPlayerWeapon(i);
        if(
IsForbiddenWeapon(var) && WeaponForbiddenForPlayer[i][var] && AccInfo[i][Level] == && ServerInfo[ForbiddenWeaps] == 1)
        {
            
SendClientMessage(i,lightred"You have been Automatically Banned.  Reason: WeaponHack  ");
            
GetWeaponName(var,lbweapon,sizeof(lbweapon));
            
format(lbweapon,sizeof(lbweapon),"Weapon Cheat (%s)",lbweapon);
            
BanEx(i,lbweapon);
            
format(string,sizeof(string),"Player %s (Id:%d) has been Automatically Kicked.  Reason: Weapons ",PlayerName,i);
            
SendClientMessageToAll(lightredstring);
            new 
str[128];
            
format(str,sizeof(str),"%s has been Automatically Kicked. Reason: WeaponHack",PlayerName);
            
SaveIn("BanLog",str);
        }
    }
    return 
1;

how to make it when some1 get weapon kick him no ban
ban is not good D
look this "BanEx(i,lbweapon);" i change it to "KickEx" but again bans... + makes server crash..
and change it "SaveIn("BanLog",str);" to "SaveIn("KickLog",str);" but again dont works..
Some1 can help me how to change it to KICK?
(its from luxadmin)
Thanks...
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)