14.04.2017, 12:09
Well, as stated by the wiki; you can detect weapons upon the OnPlayerUpdate callback instead and disable them through there.
So, the first thing you would need to do, is remove all instances of the depreciated function you are using, and instead use something of this nature:
To get a list of weapon ID's, check out: https://sampwiki.blast.hk/wiki/Weapons
So, the first thing you would need to do, is remove all instances of the depreciated function you are using, and instead use something of this nature:
Код:
public OnPlayerUpdate (playerid) { new weapon = GetPlayerWeapon (playerid); if (weapon == 38 || weapon == 35) //disables minigun and RPG { SetPlayerArmedWeapon(playerid, 0); } return 1; }