Anticheat help (LuxAdmin)
#1

Hello all,
i have a anti weapons cheat script from lux admin!
i have edited it but i have 2 warnings

Script of anti cheat:
Код:
public WeaponCheck(playerid)
{
    for(new i=0;i<MAX_PLAYERS;i++)
	{
		new lbweapon[64];
		new var;

		var=GetPlayerWeapon(i);
		if(IsForbiddenWeapon(var) && WeaponForbiddenForPlayer[i][var] && AccInfo[i][Level] == 0 && ServerInfo[ForbiddenWeaps] == 1)
		{
		    new string[128];
		    GetPlayerName(playerid, string, 20);
		    format(string, sizeof(string), "Anti{E2FF09}C{FA0404}heat: Player: {FFFFFF}%s{FA0404} kicked from server. | Reason: Weapon-Hack", string);
		    SendClientMessageToAll(0xFF0000AA, string);
		    SendClientMessage(playerid,lightred, "Anti{E2FF09}C{FA0404}heat: You have automatically kicked. | Reason: Weapon-Hack");
	     	return Kick(i, lbweapon);

	        new str[128];
			format(str, sizeof(str) ,"%s has been Kicked from AC-System. | Weapon-Hack",string);
			SaveIn("KickLog",str);
		}
	}
	return 1;
}
2 Warnings of script:
Код:
C:\Users\Admin\Desktop\Server\filterscripts\LuxAdmin.pwn(11271) : warning 202: number of arguments does not match definition
C:\Users\Admin\Desktop\Server\filterscripts\LuxAdmin.pwn(11273) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
What its go wrong?
PLZ help!
Reply


Messages In This Thread
Anticheat help (LuxAdmin) - by HotPlayer - 19.09.2011, 15:54
Re: Anticheat help (LuxAdmin) - by Zonoya - 19.09.2011, 16:01
Re: Anticheat help (LuxAdmin) - by HotPlayer - 19.09.2011, 16:03
Re: Anticheat help (LuxAdmin) - by Tigerkiller - 19.09.2011, 16:04
Re: Anticheat help (LuxAdmin) - by HotPlayer - 19.09.2011, 16:06
Re: Anticheat help (LuxAdmin) - by Tigerkiller - 19.09.2011, 16:12

Forum Jump:


Users browsing this thread: 2 Guest(s)