I want to replace this
PHP Code:
cs_set_user_armor(id, 300, CS_ARMOR_VESTHELM)
I try to do it this way, I'm just not sure if I would be doing the same
PHP Code:
/*
knowing that -> EV_FL_armortype...?
CS_ARMOR_NONE = 0, // no armor
CS_ARMOR_KEVLAR = 1, // armor
CS_ARMOR_VESTHELM = 2 // armor and helmet
*/
entity_set_float(id, EV_FL_armortype, 2.0)
static Float:fArmor; fArmor = entity_get_float(id, EV_FL_armorvalue)
entity_set_float(id, EV_FL_armorvalue, fArmor + 300.0)
__________________