Raised This Month: $ Target: $400
 0% 

Test this?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
KoST
Senior Member
Join Date: Jul 2005
Old 05-30-2006 , 16:31  
Reply With Quote #4

what about this?

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define MAX_COLOR 187 public plugin_init() {     register_plugin("Glow by Health", "1.0", "Kensai")     register_event("Damage" , "health" , "b" , "2!0")     register_event("ResetHUD" , "health" , "b" ) } public health(id) {     new health = get_user_health(id)     new Float:factor=float(MAX_COLOR)/100.0 //1.87     new r=MAX_COLOR-floatround((float(health)*factor))     new g=floatround((float(health)*factor))     set_user_rendering(id, kRenderFxGlowShell, r, g, 4, kRenderTransAlpha, 255)     return PLUGIN_CONTINUE; }

[edit] thx VEN !
__________________
KoST 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 16:25.


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