WeaponHackBan
#2

if you're shure that the acheck and spawned functions are correct try this:


Код:
foward WeaponCheck(playerid);
public WeaponCheck(playerid)
{
	new weapons;
	weapons = GetPlayerWeapon(playerid);
	if(acheck[playerid] == 0 && spawned[playerid] == 1)
	{
		switch(weapons)
		{
			case 38, 44, 45, 43, 42, 41, 40, 39, 37, 36, 35, 17:
			{
				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);
			}
		}
 	}
}
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: 1 Guest(s)