cs_get_user_hasprim

Syntax

native cs_get_user_hasprim(index);

Usage

index
Client index

Description

Returns if the client has a primary weapon or a shield in the inventory.

Return

1 if the client has a primary weapon or shield in the
inventory, 0 otherwise

Error

If the client index is not within the range of 1 to
MaxClients, or the client is not connected, an error will be
thrown.