native
cs_get_user_hasprim
Syntax
native cs_get_user_hasprim(index);
Description
Returns if the client has a primary weapon or a shield in the inventory.
Parameters
| index | Client index |
|---|
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.