05.04.2015, 02:12
Hello Every budy I need small help.
When i use /disarm id the player got banned ... for weapon hack
same happen with /disarmall
I use 8 second timer to check the weapons..
it work fine in normal but when i use ResetPlayerWeapon then it ban players some time.
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; }
Код:
new weaponid = GetPlayerWeapon(i); if (!SSWeapon[i][weaponid] && weaponid != 46 && weaponid != 40 && weaponid != 0 ) { WeaponHack(i); }