Making a weapon ban script. FS?
#2

Код:
forward weaponhack();
public weaponhack()
{
	new weap, ammo;
	for(new i=0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			GetPlayerWeaponData(i, 7, weap, ammo);
			if(ammo > 1 && weap == 9)
			{
		    SendClientMessage(i, 0xFFFFFFAA, "You have been banned for using a weapon hack.");
				Ban(i);
			}
			else if(ammo > 1 && weap == 35 || weap == 36 || weap == 37 || weap == 38 || weap == 39 || weap == 40 || weap == 43 || weap == 44 || weap == 45)
			{
				SendClientMessage(i, 0xFFFFFFAA, "You have been banned for using a weapon hack.");
				Ban(i);
			}
		}
	}
	return 1;
}
Reply


Messages In This Thread
Making a weapon ban script. FS? - by Hiitch - 23.07.2009, 00:14
Re: Making a weapon ban script. FS? - by gkstjd031 - 23.07.2009, 12:31
Re: Making a weapon ban script. FS? - by Hiitch - 24.07.2009, 13:51
Re: Making a weapon ban script. FS? - by coole210 - 24.07.2009, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)