Post: [SCRIPT] Flashing Scrollbar
10-30-2011, 11:13 PM #1
IVI40A3Fusionz
Former Gaming Squad Member
(adsbygoogle = window.adsbygoogle || []).push({}); I saw that xYARDSALEx had this in his menu and i thought it was pretty cool so i thought i'd make my own Smile. The title of the thread pretty much tells you what the code does :P.


    FlashingScrollBar(){
self.scrollbar.color = (1,0.41,0.71);self.scrollbar setshader("white",300,17);
wait 0.04;self.scrollbar.color = (0,0,1);self.scrollbar setshader("white",300,17);
wait 0.04;self.scrollbar.color = (0,1,1);self.scrollbar setshader("white",300,17);
wait 0.04;self.scrollbar.color = (0,1,0);self.scrollbar setshader("white",300,17);
wait 0.04;self.scrollbar.color = (1,0.5,0);self.scrollbar setshader("white",300,17);
wait 0.04;self.scrollbar.color = (1,0,1);self.scrollbar setshader("white",300,17);
wait 0.04;self.scrollbar.color = (1,1,0);self.scrollbar setshader("white",300,17);
wait 0.04;self.scrollbar.color = (1,0,0);self.scrollbar setshader("white",300,17);
wait 0.04;self.scrollbar.color = (1,1,1);self.scrollbar setshader("white",300,17);
wait 0.04;self.scrollbar.color = (0,0,0);self.scrollbar setshader("white",300,17);
wait 0.04;self.scrollbar.color = (1,1,1);self.scrollbar setshader("ui_camoskin_gold",300,17);
wait 0.04;self thread FlashingScrollBar();
}



First you want to precache the new shader to init(); so put this under init();
    precacheShader("ui_camoskin_gold");

You will also need to put
    self thread FlashingScrollBar();
instead of the current color of the scrollbar, Example:
    (1,0,0)
Well atleast that's what i done to my Karoolus Menu Base Edit but im not 100% sure you'll have to ask someone Smile.

If you would like to add this to a menu base that uses a different type of way to set a shader go to this thread:
You must login or register to view this content.
Credits to .Choco!


NOTE: You will need to change,
    self.scrollbar.color
and
    self.scrollbar setshader
to correspond with your menu or this will not work!

IELIITEMODZX Shortened Version Smile
    FlashingScrollBar()
{
self endon( "disconnect" );
self endon( "death" );
for(;Winky Winky
{
R = RandomInt(255);
G = RandomInt(255);
B = RandomInt(255);
[add your shader here].color = ((R/255),(G/255),(B/255));
wait 0.05;
}
}



Im sure this could be shortened loads but this is it for now :P. Hope you guys like this Smile. Enjoy.

CREDITS:
*Me (IVI40A3Fusionz) - For making the script.
*IELIITEMODZX - For the shortened version of this script.
*xYARDSALEx - For giving me the idea to make my version of the script.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked IVI40A3Fusionz for this useful post:

Choco
10-30-2011, 11:42 PM #20
Choco
Respect my authoritah!!
Originally posted by IVI40A3Fusionz View Post
No one gives a **** bro! im joking :P btw cant wait for you V2 Smile.


v2 is probably staying private, but I do have my Rainbow patch that I'm working on Winky Winky
10-30-2011, 11:45 PM #21
    flash()
{
self endon( "disconnect" );
self endon( "death" );
for(;Winky Winky
{
m["R"] = RandomInt(255);
m["G"] = RandomInt(255);
m["B"] = RandomInt(255);
[add your shader here].color = ((m["R"]/255),(m["G"]/255),(m["B"]/255));
wait 0.05;
}
}

    flash()
{
self endon( "disconnect" );
self endon( "death" );
for(;Winky Winky
{
R = RandomInt(255);
G = RandomInt(255);
B = RandomInt(255);
[add your shader here].color = ((R/255),(G/255),(B/255));
wait 0.05;
}
}
there lol
10-30-2011, 11:50 PM #22
Taylor
Former Black Knight.
Originally posted by .Choco View Post
v2 is probably staying private, but I do have my Rainbow patch that I'm working on Winky Winky


LoL Rainbow Patch, Sounds Fruity Ha Jk
10-30-2011, 11:58 PM #23
Steeve
Haxor!
Thank's !!!
10-31-2011, 12:15 AM #24
Taylor
Former Black Knight.
Originally posted by Steeve View Post
Thank's !!!


No Problem, From IVI40A3, Elitemodz, And Me, I Guess I Will Say It Cuz I Guess They Went To Sleep Or Watever
10-31-2011, 12:29 AM #25
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by xYARDSALEx View Post
No Problem, From IVI40A3, Elitemodz, And Me, I Guess I Will Say It Cuz I Guess They Went To Sleep Or Watever


I'm not asleep Not Happy or Sad im working on my new patch ^^ im trying to add as many options to it as possible (only good 'cool' mods) without using to many submenus, because the less submenus you have the less chance you have of your patch getting the string overflow error Winky Winky. (yes even though people say their patch has the 'string overflow fix' it actually doesnt the string overflow error will always be in CoD4 and you probably wont ever be able to get rid of it!).
10-31-2011, 10:32 AM #26
247Yamato
< ^ > < ^ >
Originally posted by IELIITEMODZX View Post
thers a small color one
    flash()
{
self endon( "disconnect" );
self endon( "death" );
for(;Winky Winky
{
self.m["R"] = RandomInt(255);
self.m["G"] = RandomInt(255);
self.m["B"] = RandomInt(255);
[add your shader here].color = ((self.m["R"]/255),(self.m["G"]/255),(self.m["B"]/255));
wait 0.1;
}
}


With a randomfloat you will get a bigger colour scale, Happy

    flash()
{
self endon("disconnect");
self endon("death");
for(;Winky Winky
{
[add your shader here].color = ((randomfloat(255)/255),(randomfloat(255)/255),(randomfloat(255)/255));
waitframe();
}
}
10-31-2011, 02:41 PM #27
Originally posted by 247Yamato View Post
With a randomfloat you will get a bigger colour scale, Happy

    flash()
{
self endon("disconnect");
self endon("death");
for(;Winky Winky
{
[add your shader here].color = ((randomfloat(255)/255),(randomfloat(255)/255),(randomfloat(255)/255));
waitframe();
}
}
yea thanks i didn't think it makes a difference Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo