Raised This Month: $ Target: $400
 0% 

Noob coder (Check inside) [Solved!... sorta]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-16-2007 , 16:00   Re: Noob coder (Check inside)
Reply With Quote #2

This will work with slap/heal because you only called the last one on damage and this new one is called on health hud change.

You can't do black.

Shell size is probably smaller.
Code:
#include <amxmodx> #include <fun> public plugin_init() {     register_plugin("Glow by Health", "1.0", "Davidos")     register_event("Health", "event_Health", "be") } public event_Health(id) {     switch ( read_data(1) ) {         case 0 .. 9 :         set_user_rendering(id, kRenderFxGlowShell, 3, 3, 3, kRenderTransAlpha, 10) // You can't do black, You'll have to change that.         case 10 .. 24 :         set_user_rendering(id, kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 10)         case 25 .. 49 :         set_user_rendering(id, kRenderFxGlowShell, 255, 100, 0, kRenderNormal, 10)         case 50 .. 74 :         set_user_rendering(id, kRenderFxGlowShell, 255, 255, 0, kRenderNormal, 10)         case 75 .. 99 :         set_user_rendering(id, kRenderFxGlowShell, 0, 255, 0, kRenderNormal, 10)         case 100 .. 199 :         set_user_rendering(id, kRenderFxGlowShell, 0, 0, 255, kRenderNormal, 10)         default :         set_user_rendering(id, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 10)     } }

Last edited by [ --<-@ ] Black Rose; 02-16-2007 at 16:05.
[ --<-@ ] Black Rose 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 00:41.


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