forward

zp_weapon_selected_pre

Syntax

forward zp_weapon_selected_pre(id, wpn_type, weaponid);

Description

Called when user choose weapon in weapons menu

Parameters

id Player Index
wpn_type Type of Weapon (Primary/Secondary)
weaponid Index of Registred Weapon

Note

Use ZP_PLUGIN_HANDLED for blocking buy this weapon