Raised This Month: $51 Target: $400
 12% 

Set armor and helmet using only engine


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode