Raised This Month: $ Target: $400
 0% 

Issue with player alpha


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
murpher
Member
Join Date: Jul 2006
Location: California
Old 04-08-2012 , 14:01   Issue with player alpha
Reply With Quote #1

I have a plugin that changes the alpha of players to invisible if they get 10 kills in a row with out dying, but every time they get hurt zr changes their color.

In playerclasses.txt I have
"alpha_initial" "255"
"alpha_damaged" "255"
"alpha_damage" "0"

but because the way the coding is done {if ((max_health - current_health) > max_damage)}
it will always set the alpha since the HP will always be greater than 0 if they are alive.
Would it be possible to make it so if the alpha_damaged is equal to 0, then it will not trigger this feature?

Thanks ;p
murpher is offline
TheRunningMan
Member
Join Date: Aug 2011
Location: Russia
Old 04-10-2012 , 08:27   Re: Issue with player alpha
Reply With Quote #2

Change the value of
"alpha_damage" "20000"
Alpha will change to 255 only if the player will receive 20,000 damage

Last edited by TheRunningMan; 04-10-2012 at 08:30.
TheRunningMan is offline
Reply



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 13:06.


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