20.11.2009, 15:06
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.
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_
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);
}
}
it'd be nice if someone could help me, thanks...thiaZ_