SA-MP Forums Archive
Anty Cheat CLEO Weapon Spawner - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Anty Cheat CLEO Weapon Spawner (/showthread.php?tid=440924)



Anty Cheat CLEO Weapon Spawner - Auri - 31.05.2013

Hello, i have a problem for a Anty Weapon Cheat. Players used Mod ****** are banned. But with used CLEO Weapon spawner players must create weapon. And AntyCheat and does not reapond.

This is my Script AntyWeapon.
Код:
forward AntyWeapons(playerid);
public AntyWeapons(playerid)
{
	new weapon, ammo;
	new bron1 = PlayerInfo[playerid][pBron],
		bron2 = PlayerInfo[playerid][pBron2],
		bron3 = PlayerInfo[playerid][pBron3],
		bron4 = PlayerInfo[playerid][pBron4],
		bron5 = PlayerInfo[playerid][pBron5],
		bron6 = PlayerInfo[playerid][pBron6],
		bron7 = PlayerInfo[playerid][pBron7],
		bron8 = PlayerInfo[playerid][pBron8],
		bron9 = PlayerInfo[playerid][pBron9],
		bron10 = PlayerInfo[playerid][pBron10],
		bron11 = PlayerInfo[playerid][pBron11],
		bron12 = PlayerInfo[playerid][pBron12];
	foreach(Player,i)
	{
		new str[160];
		GetPlayerWeaponData(playerid, i, weapon, ammo);
		if( bron1!= weapon && bron2!= weapon && bron3!= weapon && bron4!= weapon && bron5!= weapon && bron6!= weapon && bron7!= weapon && bron8!= weapon && bron9!= weapon && bron10!= weapon && bron11!= weapon && bron12!= weapon )
		{
			dUsunBronie(playerid);
			ResetPlayerWeapons(playerid);
				format(String, sizeof(String),"AntyCheat wyrzucony Ciebie. Powуd: GunCheat.");
				SendClientMessage(playerid,KOLOR_ADM,String);
				format(str, sizeof(str),"~r~(%d)%s zostal wyrzucony ~y~przez: AntyCheat ~w~Za: GunCheat",playerid,Nick[playerid]);
			 	NapisText(str);
				format(String, sizeof(String),"AntyCheat ban %s, za: GunCheat",PlayerInfo[i][pNickOOC]);
			dKick(playerid, "BRONCHEAT");
		}
 		else if( weapon == 16 || weapon == 35 || weapon == 36 || weapon == 37 || weapon == 38 ) 
		{
			dUsunBronie(playerid);
			ResetPlayerWeapons(playerid);
				format(String, sizeof(String),"AntyCheat wyrzucony Ciebie. Powуd: GunCheat.");
				SendClientMessage(playerid,KOLOR_ADM,String);
				format(str, sizeof(str),"~r~%s zostal wyrzucony ~y~przez: AntyCheat ~w~Za: GunCheat",Nick[playerid]);
			 	NapisText(str);
				format(String, sizeof(String),"AntyCheat ban %s, za: GunCheat",PlayerInfo[i][pNickOOC]);
			dKick(playerid, "BRONCHEAT");
		}
	}
	if(IsPlayerConnected(playerid)) SetTimerEx("AntyWeapons", 1000, false, "i", playerid);
}
I used CLEO detected for this forum and does not respond.