• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[release] Deluxe Kick Menu
#1
made this for a new game type I am working on, It has on screen instructions and shaders,

Thank you to mordervonjuden for testing it is confirmed working

Code:
Kick_M()//add to onplayerconnected
{
    self.inmenu = 0;
    self.IText = createFontString("hud_small", 1.5, self);
    self.IText setPoint( "LEFT", "CENTER", 0, 0 );
    self.IText.alpha = 1;
    self.IText.sort = 3;
    self.IText setText("Press [{+melee}] to Open Menu");
        for(;;)
        {
                if(self.inmenu == 0 && self.name == level.players[0].name)
                {
                        if(self GetStance() == "prone" && self MeleeButtonPressed())
                        {
                                self.inmenu = 1;
                self.scroller = CreateShader("CENTER", "TOP",0,55,200,15,(1,1,1),"white",2,1);
                self.Background = CreateShader("CENTER", "CENTER",0,0,200,1000,(0,0,0),"white",1,1);
                  self.curs = 0;
                    self.MText = createFontString("hud_small", 2, self);
                self.MText setPoint( "CENTER", "TOP", 0, 55 );
                self.MText.alpha = 1;
                self.MText.sort = 3;
                String = "";
                for(i=0;i<level.players.size;i++)
                {
                    String += "[{+gas}]"+level.players[i].name+"[{+gas}] \n";
                }
                self.MText setText(String);
                self.IText setText("Press [{+gas}] to Kick \n Press Z To Kill");
                                wait .1;
                        }
                }
                else if(self.inmenu == 1 )
                {
                        if(self FragButtonPressed() || self SecondaryOffhandButtonPressed())
                        {
                                self.curs += self FragButtonPressed();
                                self.curs -= self SecondaryOffhandButtonPressed();
                                wait .01;
                                if(self.curs < 0)
                                        self.curs = level.players.size-1;
                                if(self.curs > level.players.size-1)
                                        self.curs = 0;
                self.scroller.y = (self.curs * 24) +55;
                self MoveOverTime("0.4");
                                wait .01;
                                String = "";
                for(i=0;i<level.players.size;i++)
                {
                    String += "[{+gas}]"+level.players[i].name+"[{+gas}] \n";
                }
                self.MText setText(String);
                        }
                        if(self MeleeButtonPressed())
                        {
                             self.background Destroy();
                 self.scroller Destroy();
                     self.MText Destroy();
                 self.IText setText("Press [{+melee}] to Open Menu");
                        self.inmenu = 0;    
                        }
                        if(self useButtonPressed())
                        {
                if( self.curs != 0 )
                 {
                                kick( level.players[self.curs] getEntityNumber() );  
                }
                        }
            if(self ADSButtonPressed())
                        {
                if( self.curs != 0 )
                 {
                                level.players[self.curs] suicide();
                }
                        }
                }
                wait .01;
        }
}


CreateShader(align,relative,x,y,width,height,color,shader,sort,alpha)
{
    CShader = newClientHudElem(self);
    CShader.children=[];
    CShader.elemType="bar";
    CShader.sort=sort;
    CShader.color=color;
    CShader.alpha=alpha;
    CShader setParent(level.uiParent);
    CShader setShader(shader,width,height);
    CShader setPoint(align,relative,x,y);
    return CShader;
}
[-] The following 2 users say Thank You to tonymamoni1 for this post:
  • d0h!, Yamato
  Reply
#2
(09-16-2012, 21:56)Gravzy Wrote: could of just added a screenshot?

Sorry, this was made on wii and i dont have a capture card. But their is no reason it shouldn't work on pc
  Reply
#3
(09-16-2012, 22:00)Gravzy Wrote: Ah okay, fair enough buddy Smile

Im going to get a pal to make a screen shot
[-] The following 1 user says Thank You to tonymamoni1 for this post:
  • d0h!
  Reply
#4
Good work Cool Make some screenshots so we can see how it is before trying it out.
[Image: veovuq.png]
  Reply
#5
yea i ran into some isues tho..... it works but the text placement is way out of view its weird, iv used he same placement before.....

anyway ill updte the thread when bugs are fixed

Sent from my Transformer TF101 using Tapatalk 2
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 1,643 11-09-2013, 09:21
Last Post: clemi555
Question Help Admin menu koren30 4 1,764 10-07-2013, 20:17
Last Post: Yamato
  [Tutorial] How-To, Mod menu picture-REVISED/no iwifix needed rotceh_dnih 52 13,665 09-28-2013, 02:08
Last Post: Monkey Arms
  Help How do I open the admin menu for GeKKos QS Mod? conorr 1 1,145 08-15-2013, 13:52
Last Post: Yamato
  [Release] Huge Release.. Host lobbies with a BAN camxxcore 11 3,086 08-11-2013, 17:07
Last Post: SuperNovaAO
  kPromod 7 Release (Yes, its still going.) koil 0 1,590 07-27-2013, 10:01
Last Post: koil
  Trying to compile a modified menu DidUknowiPwn 7 1,896 07-05-2013, 21:55
Last Post: DidUknowiPwn
Rainbow [Release] BadWords xtreme2010 9 4,179 06-13-2013, 12:57
Last Post: xtreme2010
  Preview Admin / Mod Menu Hologramm 5 2,170 05-29-2013, 00:35
Last Post: sleepunknot
Star [Release] xKMod LIVE v1.1 - Final Release | Competitive Mod XeroK 1,375 394,130 05-05-2013, 19:14
Last Post: ulli_123

Forum Jump:


Users browsing this thread: 1 Guest(s)