Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
kick menu
#1
hello im working on an admin mod, useing quickcommands ive made the change map, but I have truble makeing kick menu have no idea how to list their names inside the menu. ive looked in bo ultimate admin system but i couldnt find anything.

heres the menu:

Code:
init()
{    
    game[ "lol7" ] = "kick_menu";
    precacheMenu( game[ "lol7" ] );
    
    level thread onPlayerConnect();
}

onPlayerConnect()
{
    while( true )
    {
        level waittill( "connected", player );
        player thread onPlayerSpawned();
    }
}

onPlayerSpawned()
{
    self endon( "disconnect" );
    
    while( true )
    {
        self waittill( "spawned_player" );
        self thread onMenuResponse();
    }
}

onMenuResponse()
{
    self endon( "death" );
    self endon( "disconnect" );
    
    while( true )
    {
        self waittill( "menuresponse", menu, response );


        if( response == "" )
        {  
        
                          
        }
                  
                               
    }
}

Code:
#include "ui/menudef.h"

#define ORIGIN_QUICKMESSAGETAB            32 224
#define ORIGIN_QUICKMESSAGEWINDOW        32 256

{
    menuDef
    {
        name            "kick_menu"
        fullscreen        0
        rect            0 0 640 480
        focuscolor        1 1 1 1
        disablecolor    0 0 0 0
        style            WINDOW_STYLE_EMPTY

        onOpen
        {
            setDvar cl_bypassMouseInput "1"
        }
        onClose
        {
            setDvar cl_bypassMouseInput "0"
        }

// WINDOW BACKGROUND
        itemDef
        {
            name            "window_background"
            visible            1
            rect            0 0 224 192
            origin            ORIGIN_QUICKMESSAGEWINDOW
             style            WINDOW_STYLE_FILLED
            forecolor        1 1 1 1
            backcolor        0 0 0 0.7975
            decoration
        }
    
// WINDOW LINES
        itemDef
        {
            name            "window_lines"
            visible            1
            rect            3 0 2 187
            origin            ORIGIN_QUICKMESSAGEWINDOW
            style            WINDOW_STYLE_FILLED
            backcolor        1 1 1 .125
            decoration
        }
        itemDef
        {
            name            "window_lines"
            visible            1
            rect            219 0 2 187
            origin            ORIGIN_QUICKMESSAGEWINDOW
            style            WINDOW_STYLE_FILLED
            backcolor        1 1 1 .125
            decoration
        }
        itemDef
        {
            name            "window_lines"
            visible            1
            rect            5 0 214 2
            origin            ORIGIN_QUICKMESSAGEWINDOW
            style            WINDOW_STYLE_FILLED
            backcolor        1 1 1 .125
            decoration
        }
        itemDef
        {
            name            "window_lines"
            visible            1
            rect            3 187 218 2
            origin            ORIGIN_QUICKMESSAGEWINDOW
            style            WINDOW_STYLE_FILLED
            backcolor        1 1 1 .125
            decoration
        }

// TITLE
        itemDef
        {
            name            "title"
            type            ITEM_TYPE_TEXT
            visible            1
            rect            0 0 224 32
            origin            ORIGIN_QUICKMESSAGETAB
            style            WINDOW_STYLE_FILLED
            forecolor        1 1 1 1
            backcolor        0 0 0 0.7975
            text            "^2Admin Menu"
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        24
            textalign        ITEM_ALIGN_CENTER
            decoration
        }
        itemDef
        {
            name            "title_quickmessage_gray"
            visible            1
            rect            3 3 218 29
            origin            ORIGIN_QUICKMESSAGETAB
            style            WINDOW_STYLE_FILLED
            backcolor        1 1 1 .125
            decoration
        }

        itemDef
        {
            name            "window"
            group            ingamebox
            type            ITEM_TYPE_TEXT
            visible            1
            rect            16 20 0 0
            origin            ORIGIN_QUICKMESSAGEWINDOW
            forecolor        1 1 1 1
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        8
            text            "^31 ^7"
            decoration
        }
        execKey "1" { scriptMenuResponse ""; close kick_menu }
    
        itemDef
        {
            name            "window"
            group            ingamebox
            type            ITEM_TYPE_TEXT
            visible            1
            rect            16 36 0 0
            origin            ORIGIN_QUICKMESSAGEWINDOW
            forecolor        1 1 1 1
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        8
            text            ""
            decoration
        }
        execKey "2" { scriptMenuResponse "2"; close kick_menu }
    
        itemDef
        {
            name            "window"
            group            ingamebox
            type            ITEM_TYPE_TEXT
            visible            1
            rect            16 52 0 0
            origin            ORIGIN_QUICKMESSAGEWINDOW
            forecolor        1 1 1 1
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        8
            text            ""
            decoration
        }
        execKey "3" { scriptMenuResponse "3"; close kick_menu }
    
        itemDef
        {
            name            "window"
            group            ingamebox
            type            ITEM_TYPE_TEXT
            visible            1
            rect            16 68 0 0
            origin            ORIGIN_QUICKMESSAGEWINDOW
            forecolor        1 1 1 1
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        8
            text            ""
            decoration
        }
        execKey "4" { scriptMenuResponse "4"; close kick_menu }
    
        itemDef
        {
            name            "window"
            group            ingamebox
            type            ITEM_TYPE_TEXT
            visible            1
            rect            16 84 0 0
            origin            ORIGIN_QUICKMESSAGEWINDOW
            forecolor        1 1 1 1
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        8
            text            ""
            decoration
        }
        execKey "5" { scriptMenuResponse "5"; close kick_menu }
    
        itemDef
        {
            name            "window"
            group            ingamebox
            type            ITEM_TYPE_TEXT
            visible            1
            rect            16 100 0 0
            origin            ORIGIN_QUICKMESSAGEWINDOW
            forecolor        1 1 1 1
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        8
            text            ""
            decoration
        }
        execKey "6" { scriptMenuResponse "6"; close kick_menu }

        itemDef
        {
            name            "window"
            group            ingamebox
            type            ITEM_TYPE_TEXT
            visible            1
            rect            16 116 0 0
            origin            ORIGIN_QUICKMESSAGEWINDOW
            forecolor        1 1 1 1
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        8
            text            ""
            decoration
        }
        execKey "7" { scriptMenuResponse "7"; close kick_menu }
    
        itemDef
        {
            name            "window"
            group            ingamebox
            type            ITEM_TYPE_TEXT
            visible            1
            rect            16 132 0 0
            origin            ORIGIN_QUICKMESSAGEWINDOW
            forecolor        1 1 1 1
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        8
            text            ""
            decoration
        }
        execKey "8" { scriptMenuResponse "8"; close kick_menu }
    
        itemDef
        {
            name            "window"
            type            ITEM_TYPE_TEXT
            visible            1
            rect            16 148 0 0
            origin            ORIGIN_QUICKMESSAGEWINDOW
            forecolor        1 1 1 1
            textfont        UI_FONT_NORMAL
            textscale        .24
            textaligny        8
            text            "^1ESC^7 to ^1EXIT"
            decoration
        }
    }
}
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#2
Dude the menu and the script shouldnt be in the same file! Check iAegle's tutorial again
Reply

#3
just made an exable quick
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#4
guys please help me out
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#5
just download kick system and see codes?
Reply

#6
cant fit it into my menu :/
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#7
ah poor birdplane
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 3,907 11-09-2013, 09:21
Last Post: clemi555
Question Help Admin menu koren30 4 4,790 10-07-2013, 20:17
Last Post: Yamato
  [Tutorial] How-To, Mod menu picture-REVISED/no iwifix needed rotceh_dnih 52 29,863 09-28-2013, 02:08
Last Post: Monkey Arms
  Help How do I open the admin menu for GeKKos QS Mod? conorr 1 2,864 08-15-2013, 13:52
Last Post: Yamato
  Trying to compile a modified menu DidUknowiPwn 7 5,289 07-05-2013, 21:55
Last Post: DidUknowiPwn
  Preview Admin / Mod Menu Hologramm 5 6,201 05-29-2013, 00:35
Last Post: sleepunknot
  Map Menu in Black Ops 1 EliTeEishiii 2 2,840 04-21-2013, 18:54
Last Post: Nekochan
  Menu base EliTeEishiii 1 2,710 04-17-2013, 16:10
Last Post: Nekochan
Rainbow [Release] [Contest] Scroll Menu iAegle 49 34,446 03-21-2013, 07:30
Last Post: jermC
  [Release] Mouse operated menu met94 18 12,853 03-06-2013, 10:27
Last Post: BHF98

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.