cs_get_user_armor
Syntax
native cs_get_user_armor(index, &CsArmorType:armortype = CS_ARMOR_NONE);
Usage
| Parameter | Description |
|---|---|
| index | Client index |
| armortype | Variable to store armor type in |
Description
Returns the client's armor value and retrieves the type of armor.
Note
For a list of possible armor types see the CsArmorType enum.
Return
Amount of armor, 0 if client has no armor
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.