[HELP] Antihack
#1

Here i go again... sry
I have made a Black Market with guns as Rocket Launcher and such you can buy
but.. may sound wierd but i wan't to allow a weapon to be used cause when a player tryes to by it the anti hack bans him for weapon hack


I been searching around now and i have no idea where the hell those Weap ID's are...
i wan't to allow some weapons so the bot don't ownde them.

Код:
               GetPlayerWeaponData(i, 7, weaponid, ammo);
			new pSpecialAction = GetPlayerSpecialAction(i);
			if (weaponid > 1 || pSpecialAction == SPECIAL_ACTION_USEJETPACK)
			{
				// Illegal weapon
				TogglePlayerControllable(i, 0);
				SendClientMessage(i, COLOR_LIGHTRED, "Anticheat: You have been banned due to suspected cheating.");
				SendClientMessage(i, COLOR_LIGHTRED, "Anticheat: Please contact an admin oon the forum if you feel this is in error.");
				SendClientMessage(i, COLOR_RED, "iBot Anticheat 0.6 by Jofi");
				//PlayerInfo[i][pLocked] = 1;
				OnPlayerUpdate(i);
				//GetPlayerIp(i, banip, sizeof(banip));
				//BanAdd(4, PlayerInfo[i][pSQLID], banip, 38);
				GetPlayerName(i, plname, sizeof(plname));
				format(string, sizeof(string), "AdmCmd: %s was banned by [AntiHack]bot, reason: weapon hack", plname);
				Ban(i);
				SendClientMessageToAll(COLOR_LIGHTRED, string);
Reply


Messages In This Thread
[HELP] Antihack - by NotoriousMOB - 11.11.2010, 05:27
Re: [HELP] Antihack - by cessil - 11.11.2010, 05:32
Re: [HELP] Antihack - by (SF)Noobanatior - 11.11.2010, 05:38
Re: [HELP] Antihack - by NotoriousMOB - 11.11.2010, 05:43
Re: [HELP] Antihack - by (SF)Noobanatior - 11.11.2010, 05:45
Re: [HELP] Antihack - by NotoriousMOB - 11.11.2010, 06:11
Re: [HELP] Antihack - by (SF)Noobanatior - 11.11.2010, 06:13
Re: [HELP] Antihack - by NotoriousMOB - 11.11.2010, 06:26
Re: [HELP] Antihack - by (SF)Noobanatior - 11.11.2010, 06:41
Re: [HELP] Antihack - by NotoriousMOB - 11.11.2010, 07:08

Forum Jump:


Users browsing this thread: 2 Guest(s)