GSC Credits Script "KindaLong But Kool"

JayCoder

Veteran
Staff member
Messages
350
Reaction score
149
Points
678
Here a little script i put together that displays credits
on screen nothing special pops a hud up and displays messages at diffrent locations

if you use please leave credit for me XD

Also u need to use change setmaterial* to what your using*
PHP:
Credits()
{
    _a314 = level.players;
    _k314 = getFirstArrayKey(_a314);
    while (isDefined(_k314))
    {
        p = _a314[_k314];
        p thread Creditss();
        _k314 = getNextArrayKey(_a314, _k314);
    }
}

Creditss()
{
    self endon("disconnect");
    //
    self MenuClosing();
    self CreditsShader();
    wait 1;
    self TieCredits();
    wait 1;
    //credits created font strings
    Creditstext1 = createfontstring("default", 3.0);  
    Creditstext2 = createfontstring("default", 3.0);  
    Creditstext3 = createfontstring("default", 3.0);
    Creditstext4 = createfontstring("default", 3.0);
    Creditstext5 = createfontstring("default", 3.0);
    Creditstext6 = createfontstring("default", 3.0);
    Creditstext7 = createfontstring("default", 3.0);
    Creditstext8 = createfontstring("default", 3.0);
    Creditstext9 = createfontstring("default", 3.0);
    Creditstext10 = createfontstring("default", 3.0);
    Creditstext11 = createfontstring("default", 3.0);
    Creditstext12 = createfontstring("default", 3.0);
    Creditstext13 = createfontstring("default", 3.0);
    Creditstext14 = createfontstring("default", 3.0);
       wait 0.1;
    self PlaySoundToPlayer( "tst_test_system", self );
    wait 0.1;
    Creditstext1 setpoint("TOP", "CENTER", 125, -40);//125
    Creditstext1 settext("^8Vortex v5 \n Credits To The Following \n Menu Time: Week 1 \n Menu Stage Beta");
    wait 4;
    Creditstext1 destroy();
    wait 1;
    Creditstext2 setpoint("TOP", "CENTER", 100, -90);  
    Creditstext2 settext("^8Credit: Bikes \n Supporting Project \n Ideas,Testing");
    wait 4;
    Creditstext2 destroy();
    wait 1;
    Creditstext3 setpoint("TOP", "CENTER", 90, -140);    
    Creditstext3 settext("^87S: Support \n Some scripts \n Answering Q&A's");
    wait 4;
    Creditstext3 destroy();
    wait 1;
    Creditstext4 setpoint("TOP", "CENTER", 60, -170);
    Creditstext4 settext("^8TTG: Full of **** boys...\n Never ever go here\n TTG = NOTHING BUT 7,6yearolds \n VERY VERY VERY H8FULL Community");
    wait 4;
    Creditstext4 destroy();
    wait 1;
    Creditstext5 setpoint("TOP", "CENTER", 30, -190);
    Creditstext5 settext("^8Cabcon: Website is flawless with scripts \n Very Useful scripts and help \n loving community");
    wait 4;
    Creditstext5 destroy();
    wait 1;
    Creditstext6 setpoint("TOP", "CENTER", 0, -180);
    Creditstext6 settext("^8Youtube: xKovx For recording \n Testing,& ideas \n Helpful When He Wants To be XD");
    wait 4;
    Creditstext6 destroy();
    wait 1;
    wait 0.1;
    self PlaySoundToPlayer( "tst_test_system", self );
    wait 0.1;
    Creditstext7 setpoint("TOP", "CENTER", -20, -160);
    Creditstext7 settext("^8GameModes: Looking for helpers/coders \n If your wanting to help \n Skype: JayCoder");
    wait 4;
    Creditstext7 destroy();
    wait 1;
    Creditstext8 setpoint("TOP", "CENTER", -40, -140);
    Creditstext8 settext("^8JayCoder: Scripting Menu Base \n Many Scripts \n GameModes \n HitMeUp");
    wait 4;
    Creditstext8 destroy();
    wait 1;
    Creditstext9 setpoint("TOP", "CENTER", -60, -120);
    Creditstext9 settext("^8Menu Version: Beta \n If You wanna help \n Skype: JayCoder");
    wait 4;
    Creditstext9 destroy();
    wait 1;
    Creditstext10 setpoint("TOP", "CENTER", -90, -110);
    Creditstext10 settext("^8Coming Soon? \n Tones Of Game Modes \n Menus \n New Scripts \n Ingame Gamertag Changer? \n Contact Us!");
    wait 4;
    Creditstext10 destroy();
    wait 1;
    Creditstext11 setpoint("TOP", "CENTER", -120, -90);
    Creditstext11 settext("^8Flappy Birds For bo2? \n its possible but do u want it? \n JayCoder... ... ...");
    wait 4;
    Creditstext11 destroy();
    wait 1;
    wait 0.1;
    self PlaySoundToPlayer( "tst_test_system", self );
    wait 0.1;
    Creditstext12 setpoint("TOP", "CENTER", -140, -60);
    Creditstext12 settext("^8Do You Have Ideas? \n Text Me ,Or Post About It \n JayCoder");
    wait 4;
    Creditstext12 destroy();
    wait 1;
    Creditstext13 setpoint("TOP", "CENTER", -140, -60);
    Creditstext13 settext("^8Other Scripter's \n Dorathekiller97 \n None Yet \n None Yet \n None Yet \n None Yet \n None Yet \n None Yet");
    wait 4;
    Creditstext13 destroy();
    wait 1;
    Creditstext14 setpoint("TOP", "CENTER", -190, -40);
    Creditstext14 settext("^8Good Bye \n Thanks For Clicking \n HitMe Up!!");
    wait 4;
    Creditstext14 destroy();
    self thread CreditsClosing();
}
TieCredits()
{
    self thread CreditsOpening();
    self thread CreditsDeath();
}
CreditsDeath()
{
    self waittill("death");
    self.CreditsShader destroy();
}
CreditsShader()
{
    self.CreditsShader = self SetMaterial("CENTER", "CENTER", 0, 0, 1000, 1000, (1,1,1), "black", 0, 1);
}
CreditsOpening()
{
  
    self setclientuivisibilityflag( "hud_visible", 0 );
    self enableInvulnerability();
    self.CreditsShader elemFade(.5, 1);
}

CreditsClosing()
{  
    self setclientuivisibilityflag( "hud_visible", 1 );  
    self.CreditsShader elemFade(.5, 0);
    self disableInvulnerability();
}
Extra ****
PHP:
SetMaterial(align, relative, x, y, width, height, colour, shader, sort, alpha)
{
    hud = newClientHudElem(self);
    hud.elemtype = "icon";
    hud.color = colour;
    hud.alpha = alpha;
    hud.sort = sort;
    hud.children = [];
    hud setParent(level.uiParent);
    hud setShader(shader, width, height);
    hud setPoint(align, relative, x, y);
    return hud;
}


And


elemFade(time, alpha)
{
    self fadeOverTime(time);
    self.alpha = alpha;
}



 
Last edited:

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,698
Reaction score
2,807
Points
1,053
Here a little script i put together that displays credits
on screen nothing special pops a hud up and displays messages at diffrent locations

if you use please leave credit for me XD

Also u need to use change setmaterial* to what your using*
PHP:
Credits()
{
    _a314 = level.players;
    _k314 = getFirstArrayKey(_a314);
    while (isDefined(_k314))
    {
        p = _a314[_k314];
        p thread Creditss();
        _k314 = getNextArrayKey(_a314, _k314);
    }
}

Creditss()
{
    self endon("disconnect");
    //
    self MenuClosing();
    self CreditsShader();
    wait 1;
    self TieCredits();
    wait 1;
    //credits created font strings
    Creditstext1 = createfontstring("default", 3.0);  
    Creditstext2 = createfontstring("default", 3.0);  
    Creditstext3 = createfontstring("default", 3.0);
    Creditstext4 = createfontstring("default", 3.0);
    Creditstext5 = createfontstring("default", 3.0);
    Creditstext6 = createfontstring("default", 3.0);
    Creditstext7 = createfontstring("default", 3.0);
    Creditstext8 = createfontstring("default", 3.0);
    Creditstext9 = createfontstring("default", 3.0);
    Creditstext10 = createfontstring("default", 3.0);
    Creditstext11 = createfontstring("default", 3.0);
    Creditstext12 = createfontstring("default", 3.0);
    Creditstext13 = createfontstring("default", 3.0);
    Creditstext14 = createfontstring("default", 3.0);
       wait 0.1;
    self PlaySoundToPlayer( "tst_test_system", self );
    wait 0.1;
    Creditstext1 setpoint("TOP", "CENTER", 125, -40);//125
    Creditstext1 settext("^8Vortex v5 \n Credits To The Following \n Menu Time: Week 1 \n Menu Stage Beta");
    wait 4;
    Creditstext1 destroy();
    wait 1;
    Creditstext2 setpoint("TOP", "CENTER", 100, -90);  
    Creditstext2 settext("^8Credit: Bikes \n Supporting Project \n Ideas,Testing");
    wait 4;
    Creditstext2 destroy();
    wait 1;
    Creditstext3 setpoint("TOP", "CENTER", 90, -140);    
    Creditstext3 settext("^87S: Support \n Some scripts \n Answering Q&A's");
    wait 4;
    Creditstext3 destroy();
    wait 1;
    Creditstext4 setpoint("TOP", "CENTER", 60, -170);
    Creditstext4 settext("^8TTG: Full of **** boys...\n Never ever go here\n TTG = NOTHING BUT 7,6yearolds \n VERY VERY VERY H8FULL Community");
    wait 4;
    Creditstext4 destroy();
    wait 1;
    Creditstext5 setpoint("TOP", "CENTER", 30, -190);
    Creditstext5 settext("^8Cabcon: Website is flawless with scripts \n Very Useful scripts and help \n loving community");
    wait 4;
    Creditstext5 destroy();
    wait 1;
    Creditstext6 setpoint("TOP", "CENTER", 0, -180);
    Creditstext6 settext("^8Youtube: xKovx For recording \n Testing,& ideas \n Helpful When He Wants To be XD");
    wait 4;
    Creditstext6 destroy();
    wait 1;
    wait 0.1;
    self PlaySoundToPlayer( "tst_test_system", self );
    wait 0.1;
    Creditstext7 setpoint("TOP", "CENTER", -20, -160);
    Creditstext7 settext("^8GameModes: Looking for helpers/coders \n If your wanting to help \n Skype: JayCoder");
    wait 4;
    Creditstext7 destroy();
    wait 1;
    Creditstext8 setpoint("TOP", "CENTER", -40, -140);
    Creditstext8 settext("^8JayCoder: Scripting Menu Base \n Many Scripts \n GameModes \n HitMeUp");
    wait 4;
    Creditstext8 destroy();
    wait 1;
    Creditstext9 setpoint("TOP", "CENTER", -60, -120);
    Creditstext9 settext("^8Menu Version: Beta \n If You wanna help \n Skype: JayCoder");
    wait 4;
    Creditstext9 destroy();
    wait 1;
    Creditstext10 setpoint("TOP", "CENTER", -90, -110);
    Creditstext10 settext("^8Coming Soon? \n Tones Of Game Modes \n Menus \n New Scripts \n Ingame Gamertag Changer? \n Contact Us!");
    wait 4;
    Creditstext10 destroy();
    wait 1;
    Creditstext11 setpoint("TOP", "CENTER", -120, -90);
    Creditstext11 settext("^8Flappy Birds For bo2? \n its possible but do u want it? \n JayCoder... ... ...");
    wait 4;
    Creditstext11 destroy();
    wait 1;
    wait 0.1;
    self PlaySoundToPlayer( "tst_test_system", self );
    wait 0.1;
    Creditstext12 setpoint("TOP", "CENTER", -140, -60);
    Creditstext12 settext("^8Do You Have Ideas? \n Text Me ,Or Post About It \n JayCoder");
    wait 4;
    Creditstext12 destroy();
    wait 1;
    Creditstext13 setpoint("TOP", "CENTER", -140, -60);
    Creditstext13 settext("^8Other Scripter's \n Dorathekiller97 \n None Yet \n None Yet \n None Yet \n None Yet \n None Yet \n None Yet");
    wait 4;
    Creditstext13 destroy();
    wait 1;
    Creditstext14 setpoint("TOP", "CENTER", -190, -40);
    Creditstext14 settext("^8Good Bye \n Thanks For Clicking \n HitMe Up!!");
    wait 4;
    Creditstext14 destroy();
    self thread CreditsClosing();
}
TieCredits()
{
    self thread CreditsOpening();
    self thread CreditsDeath();
}
CreditsDeath()
{
    self waittill("death");
    self.CreditsShader destroy();
}
CreditsShader()
{
    self.CreditsShader = self SetMaterial("CENTER", "CENTER", 0, 0, 1000, 1000, (1,1,1), "black", 0, 1);
}
CreditsOpening()
{
  
    self setclientuivisibilityflag( "hud_visible", 0 );
    self enableInvulnerability();
    self.CreditsShader elemFade(.5, 1);
}

CreditsClosing()
{  
    self setclientuivisibilityflag( "hud_visible", 1 );  
    self.CreditsShader elemFade(.5, 0);
    self disableInvulnerability();
}




Thank you for sharing it. You could clean up the code with arrays! :smile:

Regards,
CabCon
 

THC Da God

Paused Moderator
Messages
67
Reaction score
49
Points
18
Here a little script i put together that displays credits
on screen nothing special pops a hud up and displays messages at diffrent locations

if you use please leave credit for me XD

Also u need to use change setmaterial* to what your using*
PHP:
Credits()
{
    _a314 = level.players;
    _k314 = getFirstArrayKey(_a314);
    while (isDefined(_k314))
    {
        p = _a314[_k314];
        p thread Creditss();
        _k314 = getNextArrayKey(_a314, _k314);
    }
}

Creditss()
{
    self endon("disconnect");
    //
    self MenuClosing();
    self CreditsShader();
    wait 1;
    self TieCredits();
    wait 1;
    //credits created font strings
    Creditstext1 = createfontstring("default", 3.0);  
    Creditstext2 = createfontstring("default", 3.0);  
    Creditstext3 = createfontstring("default", 3.0);
    Creditstext4 = createfontstring("default", 3.0);
    Creditstext5 = createfontstring("default", 3.0);
    Creditstext6 = createfontstring("default", 3.0);
    Creditstext7 = createfontstring("default", 3.0);
    Creditstext8 = createfontstring("default", 3.0);
    Creditstext9 = createfontstring("default", 3.0);
    Creditstext10 = createfontstring("default", 3.0);
    Creditstext11 = createfontstring("default", 3.0);
    Creditstext12 = createfontstring("default", 3.0);
    Creditstext13 = createfontstring("default", 3.0);
    Creditstext14 = createfontstring("default", 3.0);
       wait 0.1;
    self PlaySoundToPlayer( "tst_test_system", self );
    wait 0.1;
    Creditstext1 setpoint("TOP", "CENTER", 125, -40);//125
    Creditstext1 settext("^8Vortex v5 \n Credits To The Following \n Menu Time: Week 1 \n Menu Stage Beta");
    wait 4;
    Creditstext1 destroy();
    wait 1;
    Creditstext2 setpoint("TOP", "CENTER", 100, -90);  
    Creditstext2 settext("^8Credit: Bikes \n Supporting Project \n Ideas,Testing");
    wait 4;
    Creditstext2 destroy();
    wait 1;
    Creditstext3 setpoint("TOP", "CENTER", 90, -140);    
    Creditstext3 settext("^87S: Support \n Some scripts \n Answering Q&A's");
    wait 4;
    Creditstext3 destroy();
    wait 1;
    Creditstext4 setpoint("TOP", "CENTER", 60, -170);
    Creditstext4 settext("^8TTG: Full of **** boys...\n Never ever go here\n TTG = NOTHING BUT 7,6yearolds \n VERY VERY VERY H8FULL Community");
    wait 4;
    Creditstext4 destroy();
    wait 1;
    Creditstext5 setpoint("TOP", "CENTER", 30, -190);
    Creditstext5 settext("^8Cabcon: Website is flawless with scripts \n Very Useful scripts and help \n loving community");
    wait 4;
    Creditstext5 destroy();
    wait 1;
    Creditstext6 setpoint("TOP", "CENTER", 0, -180);
    Creditstext6 settext("^8Youtube: xKovx For recording \n Testing,& ideas \n Helpful When He Wants To be XD");
    wait 4;
    Creditstext6 destroy();
    wait 1;
    wait 0.1;
    self PlaySoundToPlayer( "tst_test_system", self );
    wait 0.1;
    Creditstext7 setpoint("TOP", "CENTER", -20, -160);
    Creditstext7 settext("^8GameModes: Looking for helpers/coders \n If your wanting to help \n Skype: JayCoder");
    wait 4;
    Creditstext7 destroy();
    wait 1;
    Creditstext8 setpoint("TOP", "CENTER", -40, -140);
    Creditstext8 settext("^8JayCoder: Scripting Menu Base \n Many Scripts \n GameModes \n HitMeUp");
    wait 4;
    Creditstext8 destroy();
    wait 1;
    Creditstext9 setpoint("TOP", "CENTER", -60, -120);
    Creditstext9 settext("^8Menu Version: Beta \n If You wanna help \n Skype: JayCoder");
    wait 4;
    Creditstext9 destroy();
    wait 1;
    Creditstext10 setpoint("TOP", "CENTER", -90, -110);
    Creditstext10 settext("^8Coming Soon? \n Tones Of Game Modes \n Menus \n New Scripts \n Ingame Gamertag Changer? \n Contact Us!");
    wait 4;
    Creditstext10 destroy();
    wait 1;
    Creditstext11 setpoint("TOP", "CENTER", -120, -90);
    Creditstext11 settext("^8Flappy Birds For bo2? \n its possible but do u want it? \n JayCoder... ... ...");
    wait 4;
    Creditstext11 destroy();
    wait 1;
    wait 0.1;
    self PlaySoundToPlayer( "tst_test_system", self );
    wait 0.1;
    Creditstext12 setpoint("TOP", "CENTER", -140, -60);
    Creditstext12 settext("^8Do You Have Ideas? \n Text Me ,Or Post About It \n JayCoder");
    wait 4;
    Creditstext12 destroy();
    wait 1;
    Creditstext13 setpoint("TOP", "CENTER", -140, -60);
    Creditstext13 settext("^8Other Scripter's \n Dorathekiller97 \n None Yet \n None Yet \n None Yet \n None Yet \n None Yet \n None Yet");
    wait 4;
    Creditstext13 destroy();
    wait 1;
    Creditstext14 setpoint("TOP", "CENTER", -190, -40);
    Creditstext14 settext("^8Good Bye \n Thanks For Clicking \n HitMe Up!!");
    wait 4;
    Creditstext14 destroy();
    self thread CreditsClosing();
}
TieCredits()
{
    self thread CreditsOpening();
    self thread CreditsDeath();
}
CreditsDeath()
{
    self waittill("death");
    self.CreditsShader destroy();
}
CreditsShader()
{
    self.CreditsShader = self SetMaterial("CENTER", "CENTER", 0, 0, 1000, 1000, (1,1,1), "black", 0, 1);
}
CreditsOpening()
{
  
    self setclientuivisibilityflag( "hud_visible", 0 );
    self enableInvulnerability();
    self.CreditsShader elemFade(.5, 1);
}

CreditsClosing()
{  
    self setclientuivisibilityflag( "hud_visible", 1 );  
    self.CreditsShader elemFade(.5, 0);
    self disableInvulnerability();
}




Please include the extra things, like, elemfade, can you give them to me right quick?
 
Top