View Single Post
Author Message
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 03-30-2021 , 18:06   Set armor and helmet using only engine
Reply With Quote #1

I want to replace this

PHP Code:
cs_set_user_armor(id300CS_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(idEV_FL_armortype2.0)

static 
Float:fArmorfArmor entity_get_float(idEV_FL_armorvalue)

entity_set_float(idEV_FL_armorvaluefArmor 300.0
__________________
mlibre is offline