Anticheat is wrong(banned me)
#1

Can sombody tell me what is wrong at this anti weapon cheat

http://pawn.pastebin.com/d5db0e131

The server had a network iterruption , when i reconnected i got banned for weaponcheats

on my own server! i dont even cheat. can sombody tell me wehat is wrong. the script is very simple , i dont get it

if this cant be fixed how can i dysnc the weapons?
Reply
#2

Maybe you have one of those "forbidden" weapons?
Reply
#3

Код:
Код:
forward AntiWeaponHack();
public AntiWeaponHack()
{
	for(new i=0;i <MAX_PLAYERS; i++)
	{
	  //if (GetPlayerWeapon(i) == 37)
	  //{
	    new w, iName[MAX_PLAYER_NAME], string[128];
	    w = GetPlayerWeapon(i);
  		if( w == 9 || w == 8 || w == 16 || w == 18 || w == 22 || w == 23 || w == 24 || w == 26 || w == 27 || w == 28 || w == 29 || w == 30 || w == 31 || w == 32 || w == 33 || w == 34 || w ==35 || w ==36 || w ==37 || w ==38 || w ==43 || w ==44 || w ==45 )
  		{
  		  GetPlayerName(i, iName, sizeof(iName));
  		  format(string, sizeof(string), "[Server] User %s(%d) Was Banned For Weapon Hacking.", iName,i);
  		  SendClientMessageToAll(0xFFFFFFAA,string);
      	SetTimerEx("AutoBan",1000,false,"i",i);
      }
	 // }
	}
how about this:

Код:
  		if( w == 9 || w == 8 || w == 16 || w == 18 || w == 22 || w == 23 || w == 24 || w == 26 || w == 27 || w == 28 || w == 29 || w == 30 || w == 31 || w == 32 || w == 33 || w == 34 || w ==35 || w ==36 || w ==37 || w ==38 || w ==43 || w ==44 || w ==45 && !IsPlayerAdmin(i))
try that
Reply
#4

that only makes admins imune, i dont want innocent players banned and i had no weapons i just joined
Reply
#5

anybody?
Reply
#6

Download...


I repaired you script
Reply
#7

the jetpack part is out etc

what a strange loop btw:

for(new slot = 0; slot < 11; slot++)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)