03.03.2015, 18:30
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);

