Raised This Month: $ Target: $400
 0% 

glow color change in time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 08-26-2013 , 08:49   glow color change in time
Reply With Quote #1

I have option in vip plugin which makes you glow in one random color

PHP Code:
case 3:
{
    new 
p_randomnum random_num(0255)
    
    
set_user_rendering(idkRenderFxGlowShellp_randomnump_randomnump_randomnumkRenderNormal25)

what i would like is that when this option is selected it would make you glow not in one specific color but that color would change in time.

What could be the ways to do that?
GhostMan is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 08-26-2013 , 08:56   Re: glow color change in time
Reply With Quote #2

set_task?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
GhostMan
Senior Member
Join Date: Jun 2012
Old 08-26-2013 , 15:12   Re: glow color change in time
Reply With Quote #3

Example would be nice.
GhostMan is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 08-26-2013 , 15:22   Re: glow color change in time
Reply With Quote #4

Something like this

PHP Code:
#define TaskID_RandomGlow 14224

case 3set_task(0.1"Task_RandomGlow"id TaskID_RandomGlow)

public 
Task_RandomGlow(id)
{
    
id -= TaskID_RandomGlow

    
new Random random_num(0255)

    
set_user_rendering(idkRenderFxGlowShellRandomRandomRandomkRenderNormal25)

    
set_task(10.0"Task_RandomGlow"id TaskID_RandomGlow// Time to change glow: 10 seconds

And dont forget to remove:

PHP Code:
remove_task(id TaskID_RandomGlow
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Moshiko014
Senior Member
Join Date: Apr 2010
Old 08-26-2013 , 15:23   Re: glow color change in time
Reply With Quote #5

PHP Code:
case 3

    new 
p_randomnum random_num(0255
     
    
set_user_rendering(idkRenderFxGlowShellp_randomnump_randomnump_randomnumkRenderNormal25
    
set_task(5.0"ChangeGlowColor"id+4444)
}
----------------------------------
public 
ChangeGlowColor(id) {
    
id -= 4444;
    new 
p_randomnum random_num(0255
     
    
set_user_rendering(idkRenderFxGlowShellp_randomnump_randomnump_randomnumkRenderNormal25

This would change the glow color after 5.0 seconds to another random color
My example would change it only once tho

Last edited by Moshiko014; 08-26-2013 at 15:24.
Moshiko014 is offline
Old 08-27-2013, 10:17
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll
Reply


Thread Tools
Display Modes

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 18:58.


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