Anti minugn
#7

okey if you write "if(GetPlayerWeapon(playerid) == 38 ) that be founded in case when player hold minigun in hand. Try use this, this script scan all slots:




Код:
public WeaponProtection()
{
	for(new i; i<MAX_PLAYERS; i++)
	{
 		if(IsPlayerConnected(i))
 		{
			new weapon, ammo;
			GetPlayerWeaponData(i, 7, weapon, ammo);//slot 7 - there's saved (RPG, rocket, minigun & flamethrower)
			if(weapon == 38 && ammo >= 1)
			{			    
				Ban(i);
			}
		}
	}
	return true;
}
Reply


Messages In This Thread
Anti minugn - by Face9000 - 08.09.2010, 16:02
Re: Anti minugn - by Mauzen - 08.09.2010, 16:08
Re: Anti minugn - by Flabsch - 08.09.2010, 16:17
Re: Anti minugn - by LarzI - 08.09.2010, 16:23
Re: Anti minugn - by jonrb - 08.09.2010, 17:11
Re: Anti minugn - by Stefan_Toretto - 08.09.2010, 17:18
Re: Anti minugn - by F_Lexx - 08.09.2010, 17:28
Re: Anti minugn - by Face9000 - 08.09.2010, 17:30
Re: Anti minugn - by Tommy_Connin - 09.09.2010, 05:26

Forum Jump:


Users browsing this thread: 1 Guest(s)