Raised This Month: $ Target: $400
 0% 

funny consequences [armor problem]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-25-2013 , 19:27   Re: funny consequences [armor problem]
Reply With Quote #4

Just make sure final value is not < 0
set_pev(i, pev_armorvalue, floatmax(YOUR_CALCULATION, 0.0))

Anyway, if it is for cs, you should use cs_set_user_armor, so you can set armortype to 0 when armorvalue is 0, and if, before calcultion, armor amount is > 0 but armortype is 0 (can happen if a bad plugin is used), do nothing.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 06:23.


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