Anti Weapon cheat
#10

Why using slots? You can use a boolean on every weapon you give.
Код:
new bool:SSWeapon[MAX_PLAYERS][47]; //global

//when a player connects
for (new i = 0; i != 47; i++) SSWeapon[playerid][i] = false;

//under your GivePlayerWeapon hook or stock you set the var to true.
SSWeapon[playerid][weaponid] = true;

//when you reset the player's weapons set it to false
for (new i = 0; i != 47; i++) SSWeapon[playerid][i] = false;

//for detection, you can use the OnPlayerWeaponShot callback and detect it (note that not all weapons call that function)
if (!SSWeapon[playerid][weaponid]) Kick(playerid);
Reply


Messages In This Thread
Anti Weapon cheat Problem Help Rep + 1 - by MBilal - 01.03.2015, 07:29
Re : Anti Weapon cheat - by Etolas - 01.03.2015, 07:36
Re: Anti Weapon cheat - by MBilal - 01.03.2015, 07:41
Re : Anti Weapon cheat - by Etolas - 01.03.2015, 07:44
Re: Anti Weapon cheat - by MBilal - 01.03.2015, 07:59
Re : Anti Weapon cheat - by Etolas - 01.03.2015, 08:04
Re: Anti Weapon cheat - by MBilal - 01.03.2015, 08:42
Re: Anti Weapon cheat - by MBilal - 01.03.2015, 16:51
Re: Anti Weapon cheat - by MBilal - 03.03.2015, 18:02
Re: Anti Weapon cheat - by Evocator - 03.03.2015, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)