Need Small help Rep +
#1

Hello Every budy I need small help.

When i use /disarm id the player got banned ... for weapon hack
same happen with /disarmall

Код:
new Resetweapontimer[MAX_PLAYERS];
stock ResetPlayerWeaponsEx(playerid)
{
ResetPlayerWeapons(playerid);
Resetweapontimer[playerid] = SetTimerEx("ResetWeapons",10000,false,"u", playerid);
}

forward ResetWeapons(playerid);
public ResetWeapons(playerid)
{
for (new i = 0; i != 47; i++) SSWeapon[playerid][i] = false;
KillTimer(Resetweapontimer[playerid]);
return 1;
}
I use 8 second timer to check the weapons..

Код:
	  	    new weaponid = GetPlayerWeapon(i);
	 if (!SSWeapon[i][weaponid] && weaponid != 46 && weaponid != 40 && weaponid != 0 )
			  {
					WeaponHack(i);
			  }
it work fine in normal but when i use ResetPlayerWeapon then it ban players some time.
Reply
#2

Not sure but...
You are using a 10 second timer "SetTimerEx("ResetWeapons",10000,false,"u", playerid);" too reset his weapon info? And an 8 second timer to check for weapon hacks. Maybe this is because the 8 second timer completes before the ten second one. You should remove the 10 second timer (Which is very effective) or make it one second (May ban player and if the timer is set when weapon check reached 7.5, it won't be called before Weapon check).

pawn Код:
stock ResetPlayerWeaponsEx(playerid)
{
    ResetPlayerWeapons(playerid);
    for (new i = 0; i != 47; i++) SSWeapon[playerid][i] = false;
}
Reply
#3

Quote:
Originally Posted by De4dpOol
Посмотреть сообщение
Not sure but...
You are using a 10 second timer "SetTimerEx("ResetWeapons",10000,false,"u", playerid);" too reset his weapon info? And an 8 second timer to check for weapon hacks. Maybe this is because the 8 second timer completes before the ten second one. You should remove the 10 second timer (Which is very effective) or make it one second (May ban player and if the timer is set when weapon check reached 7.5, it won't be called before Weapon check).

pawn Код:
stock ResetPlayerWeaponsEx(playerid)
{
    ResetPlayerWeapons(playerid);
    for (new i = 0; i != 47; i++) SSWeapon[playerid][i] = false;
}
Dude this was the code before i was using but they still get ban when i use
this so i change it to timer to fix it but not happen..
stock ResetPlayerWeaponsEx(playerid)
{
ResetPlayerWeapons(playerid);
for (new i = 0; i != 47; i++) SSWeapon[playerid][i] = false;
}
Reply
#4

Show the command or Anti cheat that u are using to ban a player for weapon hack
Reply
#5

Код:
  	    new weaponid = GetPlayerWeapon(i);
	 if (!SSWeapon[i][weaponid] && weaponid != 46 && weaponid != 40 && weaponid != 0 )
			  {
					WeaponHack(i);
			  }
I use this to ban well already posted up there ..
Reply
#6

Deleted...
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)