fixed bug at19476

This commit is contained in:
Borja Ferrer 2005-10-29 18:19:23 +00:00
parent 9657430ef7
commit 2931247559

View File

@ -182,14 +182,14 @@ native cs_get_user_shield(index);
*/ */
native cs_get_user_stationary(index); native cs_get_user_stationary(index);
/* Returns armor value and sets armor type in second parameter. /* Returns armor value and sets by reference the armor type in second parameter.
*/ */
enum CsArmorType { enum CsArmorType {
CS_ARMOR_NONE = 0, // no armor CS_ARMOR_NONE = 0, // no armor
CS_ARMOR_KEVLAR = 1, // armor CS_ARMOR_KEVLAR = 1, // armor
CS_ARMOR_VESTHELM = 2 // armor and helmet CS_ARMOR_VESTHELM = 2 // armor and helmet
}; };
native cs_get_user_armor(index, CsArmorType:armortype); native cs_get_user_armor(index, &CsArmorType:armortype);
/* Use this instead of fun's set_user_armor. /* Use this instead of fun's set_user_armor.
* Appropriate message to update client's HUD will be sent if armortype is kevlar or vesthelm. * Appropriate message to update client's HUD will be sent if armortype is kevlar or vesthelm.