AMX Mod X API Documentation

Signature
native cs_get_user_armor(index, &CsArmorType:armortype = CS_ARMOR_NONE);
Description

Returns the client's armor value and retrieves the type of armor.

Notes
  • For a list of possible armor types see the CsArmorType enum.
Parameters
  • index Client index
  • armortype Variable to store armor type in
Returns

Amount of armor, 0 if client has no armor

Errors
  • If the client index is not within the range of 1 to

    MaxClients, or the client is not connected, an error

    will be thrown.

Назад
Верх