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:30 PM #11
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by xYARDSALEx View Post
I Was Thinking Off Adding A Shader Option Called Epileptic Menu, And It Wud Make Everything Flashing


lol you should add it ^^
10-30-2011, 11:31 PM #12
Taylor
Former Black Knight.
Originally posted by IVI40A3Fusionz View Post
lol you should add it ^^


I DOnt Want To, I MIght In v7
10-30-2011, 11:35 PM #13
IVI40A3Fusionz
Former Gaming Squad Member
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;
}
}


Added it and also put some credits at the bottom of the thread Smile.
10-30-2011, 11:36 PM #14
Originally posted by IVI40A3Fusionz View Post
Added it and also put some credits at the bottom of the thread Smile.
it can be smaller Happy
10-30-2011, 11:38 PM #15
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by IELIITEMODZX View Post
it can be smaller Happy


? WTF? O.o how can you make that smaller? lol.
10-30-2011, 11:39 PM #16
Choco
Respect my authoritah!!
I saw this is in his patch earlier, I just figured out how to do it for IELITEMODZX base Winky Winky It's scripted differently and it took me a while to figure out
10-30-2011, 11:41 PM #17
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by .Choco View Post
I saw this is in his patch earlier, I just figured out how to do it for IELITEMODZX base Winky Winky It's scripted differently and it took me a while to figure out


No one gives a **** bro! im joking :P btw cant wait for you V2 Smile.
10-30-2011, 11:42 PM #18
Originally posted by IVI40A3Fusionz View Post
? WTF? O.o how can you make that smaller? lol.
take the self. out of it lol

i just like my codes to have self. just incase i need to use that code somwhere else
10-30-2011, 11:42 PM #19
Taylor
Former Black Knight.
Originally posted by IVI40A3Fusionz View Post
? WTF? O.o how can you make that smaller? lol.


By Encrypting It

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo