native

ns_get_weap_reserve

Syntax

native ns_get_weap_reserve(id,weapon);

Description

Gets the player's weapon reserve (backpack ammo) for the specified
type of weapon.

Parameters

id The player id to check ammo count on.
weapon The weapon type to check ammo count for.

Note

Use player index, not weapon index!

Return

The ammunition count in the player's reserve.