Quote:
Originally Posted by BloodyBlade
If StrEqual(classname, "weapon_chainsaw") returns that the firing weapon is a chainsaw, then GetPlayerWeaponSlot(client, 1) returns a valid value. I have never received an error message with this code.
|
weapon in which slot can be modified by addons, for example it can be in slot 0. and, other plugin can call api such as "SDKHooks_DropWeapon" to change current active weapon if the event hook earlier than you plugins.
extreme situations should be considered.