Raised This Month: $ Target: $400
 0% 

Player Glow V1.4


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-23-2009 , 15:39   Re: Player Glow V1.0
Reply With Quote #3

PHP Code:
switch(random_num(1,8)) 
10 cases..?

Instead of all those cases, you could just do this to get random colors.

PHP Code:
fm_set_rendering(idkRenderFxGlowShellrandom(255), random(255), random(255), kRenderNormal16); 
set_user_rendering from fun could be used instead, it's more efficient.

IMO you should rename the cvar to something more appropiate, like amx_randomglow, for example.

EDIT:
You shouldn't set a task in client_connect, may cause trouble. Hook spawn or new round instead.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 06-23-2009 at 15:41.
Xellath 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:28.


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