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:18 PM #2
Taylor
Former Black Knight.
Originally posted by IVI40A3Fusionz View Post
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.


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


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


Hmmmmm WHy Does THis Look Familiar...... I Think I Need Some Credits LoL

Edit, Nvm Just Saw The Credits
10-30-2011, 11:19 PM #3
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by xYARDSALEx View Post
Hmmmmm WHy Does THis Look Familiar...... I Think I Need Some Credits LoL

Edit, Nvm Just Saw The Credits


LOL i got the idea from your patch and i looked at the way you coded it and made my own :P. and i always give credits in my posts Winky Winky.
10-30-2011, 11:20 PM #4
Taylor
Former Black Knight.
Originally posted by IVI40A3Fusionz View Post
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.


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


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


Ohhhh Btw This Only Works With Shaders That Are Like That, Im Assuming, I Doubt It Would Work With createshader and wat not
10-30-2011, 11:22 PM #5
Originally posted by IVI40A3Fusionz View Post
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.


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


Im sure this could be shortened loads but this is it for now :P. Hope you guys like this Smile. Enjoy.
wow thats big (can be much shorter)
10-30-2011, 11:22 PM #6
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by xYARDSALEx View Post
Ohhhh Btw This Only Works With Shaders That Are Like That, Im Assuming, I Doubt It Would Work With createshader and wat not


i have no idea some people are gonna have to test it :/ but then if it doesn't they can always change their shader and use the one Karoolus uses.
10-30-2011, 11:22 PM #7
Taylor
Former Black Knight.
Originally posted by IVI40A3Fusionz View Post
LOL i got the idea from your patch and i looked at the way you coded it and made my own :P. and i always give credits in my posts Winky Winky.


Ya, Quite A Good Idea, Dont You Think, I Was Typing It Up In My Patch (Think, Its Not Gunna Work, Why Am I Doing This?) Then i Sarted Cod4 And I Was Like HOLLY SHIT IT WORKED
10-30-2011, 11:25 PM #8
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by IELIITEMODZX View Post
wow thats big (can be much shorter)


Go ahead and shorten it Smile and i'll put it in the thread and give you credits?

---------- Post added at 06:25 PM ---------- Previous post was at 06:24 PM ----------

Originally posted by xYARDSALEx View Post
Ya, Quite A Good Idea, Dont You Think, I Was Typing It Up In My Patch (Think, Its Not Gunna Work, Why Am I Doing This?) Then i Sarted Cod4 And I Was Like HOLLY SHIT IT WORKED


lol i like it anyway but if you have wait 0.01; instead of wait 0.04; (which is still pretty fast) then you should have in your patch WARNING THING COULD CAUSE A SEIZURE!
10-30-2011, 11:29 PM #9
Taylor
Former Black Knight.
Originally posted by another user

lol i like it anyway but if you have wait 0.01; instead of wait 0.04; (which is still pretty fast) then you should have in your patch WARNING THING COULD CAUSE A SEIZURE!


I Was Thinking Off Adding A Shader Option Called Epileptic Menu, And It Wud Make Everything Flashing
10-30-2011, 11:30 PM #10
Originally posted by IVI40A3Fusionz View Post
Go ahead and shorten it Smile and i'll put it in the thread and give you credits?

---------- Post added at 06:25 PM ---------- Previous post was at 06:24 PM ----------



lol i like it anyway but if you have wait 0.01; instead of wait 0.04; (which is still pretty fast) then you should have in your patch WARNING THING COULD CAUSE A SEIZURE!
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;
}
}

The following 2 users say thank you to IELIITEMODZX for this useful post:

IVI40A3Fusionz, Taylor

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo