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
#2

give us some time we gotta do the scripting and fix errors and stuff so give time
Reply
#3

but why?
i need help from this script!!
Reply
#4

it takes time for it
*reported for threadt bumping
Reply
#5

Sory for post
Fixed script......
Reply
#6

lol ^^
you dont get ban
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)