WeaponHackBan
#1

Hey guys,

after i tried to code an anti weaponhack check/ban, i failed , but the problem is, i don't know where is the mistake.

pawn Код:
foward WeaponCheck(playerid);
public WeaponCheck(playerid)
{
    new weapons;
    weapons = GetPlayerWeapon(playerid);
    if(weapons == 38,44,45,43,42,41,40,39,37,36,35,17 && acheck[playerid] == 0 && spawned[playerid] == 1)
    {
        new string[128],name[24];
         GetPlayerName(playerid,name,24);
        format(string,128,"[BANN] %s wurde automatisch vom Server gebannt. (Grund: Weaponhack)",name);
        new string1[128];
        format(string1,128,"[BAN] %s was automatically banned from the server. (Reason: Weaponhack)",name);
        LangMessageToAll(THIAZ_RED,string,string1);
        Ban(playerid);
    }
}
The script bans me, but i have only weaponids 26(Sawnoff),28(Uzi),24(Deagle)



it'd be nice if someone could help me, thanks...thiaZ_
Reply


Messages In This Thread
WeaponHackBan - by thiaZ_ - 20.11.2009, 15:06
Re: WeaponHackBan - by ExoSanty - 20.11.2009, 16:08
Re: WeaponHackBan - by thiaZ_ - 20.11.2009, 16:47
Re: WeaponHackBan - by Jakku - 20.11.2009, 16:48
Re: WeaponHackBan - by ExoSanty - 20.11.2009, 17:08

Forum Jump:


Users browsing this thread: 3 Guest(s)