Post: open menu before game
10-26-2015, 05:21 AM #1
CiiBs
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); this is the code im using how do i make it so i can open menu before game countdown is done it was aim and knife at first but i changed it

menuSetup()
{
self thread modMenu();
for(;Winky Winky
{
if(self.inmenu == false && self.controls == true)
{
if(self adsbuttonpressed() && self ActionSlotTwoButtonPressed()) { self thread openMenu(); }
}
else if(self.inmenu == true && self.controls == true)
{
if(self.CurMenu == 0) q = 0;
else q = 1;
if(self attackButtonPressed())
{
self.selOP++;
self.MenuOP++;
if(self.SelOP > self.Option[self.CurMenu].size-1)
{
for(i = 0;i<self.Option[self.CurMenu].size;i++)
{
self.Text[q] setText(self.Option[self.CurMenu]);
}
self.SelOP = 0;
self.MenuOP = 0;
}
if(self.Option[self.CurMenu].size > 7)
{
if(self.MenuOP > 3 && self.SelOP < self.Option[self.CurMenu].size - 3)
{
for(i = 0;i<self.Option[self.CurMenu].size;i++)
{
self.Text[q] setText(self.Option[self.CurMenu][-3+self.selOP+i]);
}
self.MenuOP = 3;
if(self.SelOP > self.Option[self.CurMenu].size - 3) self.MenuOP = 4;
}
}
self.scroller elemMoveY(.1,self.Text[q][self.MenuOP].Y);
self playsound("TickTock_Loop");
self thread textFX(q);
}
if(self adsButtonPressed())
{
self.selOP--;
self.MenuOP--;
if(self.SelOP < 0)
{
for(i = 0;i<self.Option[self.CurMenu].size;i++)
{
self.Text[q][7-i] setText(self.Option[self.CurMenu][self.Option[self.CurMenu].size-i]);
}
self.SelOP = self.Option[self.CurMenu].size-1;
self.MenuOP = 6;
}
if(self.Option[self.CurMenu].size > 7)
{
if(self.MenuOP < 3 && self.SelOP >= 3)
{
for(i = 0;i<self.Option[self.CurMenu].size;i++)
{
self.Text[q][7-i] setText(self.Option[self.CurMenu][4+self.selOP-i]);
}
self.MenuOP = 3;
}
}
self.scroller elemMoveY(.1,self.Text[q][self.MenuOP].Y);
self playsound("TickTock_Loop");
self thread textFX(q);
}
if(self useButtonPressed())
{
self thread[[self.function[self.CurMenu][self.selOP]]](self.input1[self.CurMenu][self.SelOP],self.input2[self.CurMenu][self.SelOP]);
wait .2;
}
if(self meleeButtonPressed())
{
if(self.CurMenu == 0)
{
self thread closeMenu();
}
else
{
self thread newMenu(0);
}
wait .2;
}
}
wait .05;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
10-29-2015, 11:42 AM #11
-Numb
You talkin to me?
Originally posted by GentleSlugger View Post
you just should give him an idea that way he learns instead of C&P


I know :p my bad

The following user thanked -Numb for this useful post:

itsSorrow
10-29-2015, 11:45 AM #12
-Numb
You talkin to me?
Originally posted by 7ooo7 View Post
i did but it froze me after spawned

here the source help me plz

    onPlayerSpawned()
{
self endon( "disconnect" );
level endon( "game_ended" );


isFirstSpawn = 1;
self.CurMenu = "Dynamic v3";
self.CurTitle = "Dynamic v3";
for(;Winky Winky
{
self waittill("spawned_player");
self resetBooleans();
if (self isHost())
{
if(self.BulletT == 0) h("timescale", "1");
}
if(isFirstSpawn)
{
if (self isHost())
{
self resetdvars();
// self thread deathBarrier(0);

thread overflowfix();
level.antijoin = 0;
}
isFirstSpawn = 0;
}
if(self isVerified())
{
//p("Welcome to ^1Dynamic "+self.Private["version"]+" ^7Hosted By ^5"+level.hostname);
// p("Press [{+actionslot 1}] To Open The Menu!");
//if(self.menu.open == 1) self freezecontrols(1);
self freezeControls(false);
}
}
}


How can that freeze you..? You only added the "self thread MoveAfterGame();" and did not add the function or what?
If you read my first post you should be able to do it yourself..
10-29-2015, 12:01 PM #13
ksa_7ooo7
Maggbot timeout!
Originally posted by Numb View Post
How can that freeze you..? You only added the "self thread MoveAfterGame();" and did not add the function or what?
If you read my first post you should be able to do it yourself..


i did it like this add the function and it froze me



    
onPlayerSpawned()
{
self endon( "disconnect" );
level endon( "game_ended" );


isFirstSpawn = 1;
self.CurMenu = "Dynamic v3";
self.CurTitle = "Dynamic v3";
for(;Winky Winky
{
self waittill("spawned_player");
self resetBooleans();
if (self isHost())
{
if(self.BulletT == 0) h("timescale", "1");
}
if(isFirstSpawn)
{
if (self isHost())
{
self resetdvars();
self thread deathBarrier(0);
self thread MoveAfterGame();
thread overflowfix();
level.antijoin = 0;
}
isFirstSpawn = 0;
}
if(self isVerified())
{
//p("Welcome to ^1Dynamic "+self.Private["version"]+" ^7Hosted By ^5"+level.hostname);
// p("Press [{+actionslot 1}] To Open The Menu!");
//if(self.menu.open == 1) self freezecontrols(1);
self freezeControls(false);
}
}
}
10-29-2015, 12:16 PM #14
-Numb
You talkin to me?
Originally posted by 7ooo7 View Post
i did it like this add the function and it froze me



    
onPlayerSpawned()
{
self endon( "disconnect" );
level endon( "game_ended" );


isFirstSpawn = 1;
self.CurMenu = "Dynamic v3";
self.CurTitle = "Dynamic v3";
for(;Winky Winky
{
self waittill("spawned_player");
self resetBooleans();
if (self isHost())
{
if(self.BulletT == 0) h("timescale", "1");
}
if(isFirstSpawn)
{
if (self isHost())
{
self resetdvars();
self thread deathBarrier(0);
self thread MoveAfterGame();
thread overflowfix();
level.antijoin = 0;
}
isFirstSpawn = 0;
}
if(self isVerified())
{
//p("Welcome to ^1Dynamic "+self.Private["version"]+" ^7Hosted By ^5"+level.hostname);
// p("Press [{+actionslot 1}] To Open The Menu!");
//if(self.menu.open == 1) self freezecontrols(1);
self freezeControls(false);
}
}
}


Well its not the function I gave you that makes you freeze..
I did notice that on the first post you had "// self thread deathBarrier(0);" and on the second post you had removed the //. Maybe you do not have the deathBarrier() function or something?
10-29-2015, 01:13 PM #15
ksa_7ooo7
Maggbot timeout!
Originally posted by Numb View Post
Well its not the function I gave you that makes you freeze..
I did notice that on the first post you had "// self thread deathBarrier(0);" and on the second post you had removed the //. Maybe you do not have the deathBarrier() function or something?


i have the function deathBarrier() it does not freeze :(

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo