Results 1 to 9 of 9

Thread: bots problem

  1. #1
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts

    bots problem

    hello everybody

    i have a problem in my server
    i don't know if it's the bots or it does not accept more than 15 players:

    i made a admin menu as the mod hun botzom, i mean a list of players with commands and when i am single or with less than 15 players, it work but if there are more than 15 players and when i'll in the admin menu, the server crash and it mark:

    ERROR: Attempted to overrun string in call to va()

    i use a local server, it's maybe that?
    i googled it and their problems was in main, i look in main for bad files but all was correct (iw and localized files only).

    maybe you can help me?

    ORDI
    xfire: ordi37zk

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    The problem is probably that you are building a string longer than 1024 characters when there are 15 or more players on the server. VA() is a function which calls snprintf and returns a pointer to
    its static buffer. When it receives more than 1024 characters it will crash a server. It is famous for being exploitable - you can artificially send a string with more than 1024 characters to va() and crash a server with it.

    You will need to show your admin panel in order for us to try to identify the cause of the problem.

  3. #3
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Do you maybe generate a long cvar, which is shown in the menu (e.g. merge of all player names)?

    That bug is known and there are fixes for the linux versions, but the "fixes" might just prevent the crash but your cvar functions will not work nonetheless.

    Maybe you can show your code / menu so we can see whats actually happening.
    timescale 0.01

  4. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  5. #5
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    Iznogod:
    the problem.
    Developper has been enabled correctly but when developper is to 1: i get a problem when i call the bots (/set scr_testclients...) in the script of the testclient without that i edit it.
    Are you using self: euhm i use the same script that hun botzom
    Tried and fixes, yea i tried many things but still same problem.
    Now i say at forum.

    The script: (in _menus)
    PHP Code:
    if(response=="rm"
            {
                
    self setclientcvar("a_r","");
                
    self updateNums();
                continue;
            }


    updatenums()
    {
        
    players getentarray("player""classname");
        
    s="";
        
    s2="";
        
    j=0;
        
    self.usize=0;
        for(
    032i++)
        {
            if(
    players[jgetentitynumber() != is+="\n"; else 
            {
                
    self.usize+=7;
                
    s+="^7Id^1: "+players[jgetentitynumber()+"^3/^7Guid^1: "+players[jgetGuid()+"^3/^7Name^1: ^7" getname(players[j])+"^3/^7Warn^1: ^7" players[j].warn+"\n\n";
                
    j++;
                if(
    j==players.size) break;
                if(
    self.usize>=1016) {logprint("NEMFÉRKIII!!! "+i+"\n");i=32;j=32;}
            }
        }
        
    self.usize=0;
        if(
    j!=players.size)
        for(
    3264i++)
        {
            if(
    players[jgetentitynumber() != is2+="\n"; else 
            {
                
    self.usize+=7;
                
    s+="^7Id^1: "+players[jgetentitynumber()+"^3/^7Guid^1: "+players[jgetGuid()+"^3/^7Name^1: ^7" getname(players[j])+"\n\n";
                
    j++;
                if(
    j==players.size) break;
                if(
    self.usize>=1016) {logprint("NEMFÉRKIII!!! "+i+"\n");break;}
            }
        } 
        
    self setclientcvar("ui_ids",s);
        
    self setclientcvar("ui_ids2",s2);
    }

    getname(p)
    {
        
    s="";
        
    name=uncomma(p.name);
        for(
    i=0;i<name.size;i++) {if(self.usize>=1016) return s;s+=name[i];self.usize++;}
        return 
    s;
    }

    uncomma(s)
    {
        
    s+="  ";
        
    ss="";
        for(
    i=0;i<s.size-2;i++) if (!(s[i]=="^" && s[i+1]=="^" && nummm(s[i+2]) && nummm(s[i+3]))) ss+=s[i]; else {ss+=s[i]+s[i+2];i+=3;}
        return 
    ss;
    }

    nummm(x)
    {
        if (
    x=="0" || x=="1" || x=="2" || x=="3" || x=="4" || x=="5" || x=="6" || x=="7" || x=="8" || x=="9") return true; else return false;


  6. #6
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    in the menu adminpanel:

    PHP Code:
    #include "ui_mp/menudef.h"

    #define ORIGIN_TITLE        48 64
    #define ORIGIN_TEXT            280 60

    #define ORIGIN_TEXT2        10 80
    #define ORIGIN_COMALL1        10 100
    #define ORIGIN_COMALL2        10 110
    #define ORIGIN_COMALL3        10 120
    #define ORIGIN_COMALL4        10 130
    #define ORIGIN_COMALL5        10 140
    #define ORIGIN_COMALL6        10 150
    #define ORIGIN_COMALL7        10 160
    #define ORIGIN_COMALL8        10 170
    #define ORIGIN_COMALL9        10 180
    #define ORIGIN_COMALL10        10 190
    #define ORIGIN_COMALL11        10 200
    #define ORIGIN_COMALL12        10 210

    #define ORIGIN_RANKALL1        02 100
    #define ORIGIN_RANKALL2        02 110
    #define ORIGIN_RANKALL3        02 120
    #define ORIGIN_RANKALL4        02 130
    #define ORIGIN_RANKALL5        02 140
    #define ORIGIN_RANKALL6        02 150
    #define ORIGIN_RANKALL7        02 160
    #define ORIGIN_RANKALL8        02 170
    #define ORIGIN_RANKALL9        02 180
    #define ORIGIN_RANKALL10    02 190
    #define ORIGIN_RANKALL11    02 200
    #define ORIGIN_RANKALL12    02 210

    #define ORIGIN_RANK1        472 100
    #define ORIGIN_RANK2        472 110
    #define ORIGIN_RANK3        472 120
    #define ORIGIN_RANK4        472 130
    #define ORIGIN_RANK5        472 140
    #define ORIGIN_RANK6        472 150
    #define ORIGIN_RANK7        472 160
    #define ORIGIN_RANK8        472 170
    #define ORIGIN_RANK9        472 180
    #define ORIGIN_RANK10        472 190
    #define ORIGIN_RANK11        472 200
    #define ORIGIN_RANK12        472 210

    #define ORIGIN_TEXT3        650 80
    #define ORIGIN_COM1            280 100
    #define ORIGIN_COM2            280 110
    #define ORIGIN_COM3            280 120
    #define ORIGIN_COM4            280 130
    #define ORIGIN_COM5            280 140
    #define ORIGIN_COM6            280 150
    #define ORIGIN_COM7            280 160
    #define ORIGIN_COM8            280 170
    #define ORIGIN_COM9            280 180
    #define ORIGIN_COM10        280 190
    #define ORIGIN_COM11        280 200
    #define ORIGIN_COM12        280 210

    #define ORIGIN_MAINMENU        140 328
    #define ORIGIN_BACK            280 328

    {
        
    menuDef
        
    {
            
    name            "adminpanel"
            
    rect            0 0 640 480
            focuscolor        GLOBAL_FOCUSED_COLOR
            style            WINDOW_STYLE_EMPTY
            blurWorld        5.0
            onOpen
            
    {
                
    exec "rcon status"
                
    scriptmenuresponse "rm"
            
    }
            
    onEsc 
            
    {
                
    close adminpanel;
            }

            
    itemDef
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                origin            ORIGIN_TITLE
                forecolor        1 1 1 1
                text            
    ""
                
    textfont        UI_FONT_NORMAL
                textscale        GLOBAL_HEADER_SIZE
                decoration
            
    }
            
            
    itemDef 
            
    {
                
    style            WINDOW_STYLE_FILLED
                rect            180 40 280 23 
    //left-right|up-down|size left-right| size up-down
                
    backcolor        0 0 0 0.7975 
                border            1
                bordercolor        1 1 1 .8
                visible            1
                decoration
            
    }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                origin            ORIGIN_TEXT
                forecolor        1 1 1 1
                text            
    "Admin Panel"
                
    textfont        UI_FONT_NORMAL
                textscale        .30
                decoration
            
    }
            
            
    itemDef 
            
    {
                
    style            WINDOW_STYLE_FILLED
                rect            180 80 280 300 
    //left-right|up-down|size left-right| size up-down
                
    backcolor        0 0 0 0.7975 
                border            1
                bordercolor        1 1 1 .8
                visible            1
                decoration
            
    }
            
            
    itemDef 
            
    {
                
    style            WINDOW_STYLE_FILLED
                rect            480 80 150 300 
    //left-right|up-down|size left-right| size up-down
                
    backcolor        0 0 0 0.7975 
                border            1
                bordercolor        1 1 1 .8
                visible            1
                decoration
            
    }
            
            
    itemDef 
            
    {
                
    style            WINDOW_STYLE_FILLED
                rect            180 400 280 23 
    //left-right|up-down|size left-right| size up-down
                
    backcolor        0 0 0 0.7975 
                border            1
                bordercolor        1 1 1 .8
                visible            1
                decoration
            
    }
            
            
    itemDef 
            
    {
                
    style            WINDOW_STYLE_FILLED
                rect            10 80 150 300 
    //left-right|up-down|size left-right| size up-down
                
    backcolor        0 0 0 0.7975 
                border            1
                bordercolor        1 1 1 .8
                visible            1
                decoration
            
    }
            
            
    itemDef 
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            45 20 80 14
                origin            ORIGIN_TEXT2
                forecolor        1 1 1 1
                type            ITEM_TYPE_TEXT
                text            
    "^1[^7Commands All^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textaligny        10
            
    }
            
            
    itemDef 
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            525 20 80 14
                origin            ORIGIN_TEXT2
                forecolor        1 1 1 1
                type            ITEM_TYPE_TEXT
                text            
    "^1[^7Commands^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textaligny        10
            
    }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 30 80 14
                origin            ORIGIN_RANK1
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c1"
                
    visible            1
                rect            225 20 80 14
                origin            ORIGIN_COM1
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Pickup"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    open pickup;
                    
    close adminpanel;
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c1 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c1 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            13 35 80 14
                origin            ORIGIN_RANK2
                forecolor        1 1 1 1
                text            
    "^1[^7Ldr^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c2"
                
    visible            1
                rect            225 25 80 14
                origin            ORIGIN_COM2
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Exp pack"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    open exppack;
                    
    close adminpanel;
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c2 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c2 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 40 80 14
                origin            ORIGIN_RANK3
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c3"
                
    visible            1
                rect            225 30 80 14
                origin            ORIGIN_COM3
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Ammo pack"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    open ammopack;
                    
    close adminpanel;
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c3 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c3 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 45 80 14
                origin            ORIGIN_RANK4
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c4"
                
    visible            1
                rect            225 35 80 14
                origin            ORIGIN_COM4
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Kick player"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    open kickplayer;
                    
    close adminpanel;
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c4 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c4 backcolor 0 0 0 0 .7975 }
            } 

  7. #7
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    the follow of the menu:
    PHP Code:
     itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 50 80 14
                origin            ORIGIN_RANK5
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c5"
                
    visible            1
                rect            225 40 80 14
                origin            ORIGIN_COM5
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Ban player"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c5 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c5 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 55 80 14
                origin            ORIGIN_RANK6
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c6"
                
    visible            1
                rect            225 45 80 14
                origin            ORIGIN_COM6
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Kill player"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c6 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c6 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 60 80 14
                origin            ORIGIN_RANK7
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c7"
                
    visible            1
                rect            225 50 80 14
                origin            ORIGIN_COM7
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Switch player"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c7 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c7 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 65 80 14
                origin            ORIGIN_RANK8
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c8"
                
    visible            1
                rect            225 55 80 14
                origin            ORIGIN_COM8
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Superjump"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c8 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c8 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 70 80 14
                origin            ORIGIN_RANK9
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c9"
                
    visible            1
                rect            225 60 80 14
                origin            ORIGIN_COM9
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Warn block"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c9 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c9 backcolor 0 0 0 0 .7975 }
            }
            
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 75 80 14
                origin            ORIGIN_RANK10
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c10"
                
    visible            1
                rect            225 65 80 14
                origin            ORIGIN_COM10
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Warn Camp"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c10 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c10 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 80 80 14
                origin            ORIGIN_RANK11
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c11"
                
    visible            1
                rect            225 70 80 14
                origin            ORIGIN_COM11
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Warn Language"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c11 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c11 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 85 80 14
                origin            ORIGIN_RANK12
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_c12"
                
    visible            1
                rect            225 75 80 14
                origin            ORIGIN_COM12
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Remove Warn"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_c12 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_c12 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            13 30 80 14
                origin            ORIGIN_RANKALL1
                forecolor        1 1 1 1
                text            
    "^1[^7Ldr^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca1"
                
    visible            1
                rect            25 20 80 14
                origin            ORIGIN_COMALL1
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Disable/Enable weapons"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    open edit_weapons;
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca1 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca1 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            13 35 80 14 
                origin            ORIGIN_RANKALL2
                forecolor        1 1 1 1
                text            
    "^1[^7Ldr^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca2"
                
    visible            1
                rect            25 25 80 14
                origin            ORIGIN_COMALL2
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Normal Exp"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "exp1";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca2 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca2 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            13 40 80 14 
                origin            ORIGIN_RANKALL3
                forecolor        1 1 1 1
                text            
    "^1[^7Ldr^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca3"
                
    visible            1
                rect            25 30 80 14
                origin            ORIGIN_COMALL3
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Double Exp"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "exp2";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca3 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca3 backcolor 0 0 0 0 .7975 }
            } 

  8. #8
    Private
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    13
    Thanked 4 Times in 3 Posts
    the follow of the menu:
    PHP Code:
     itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            13 45 80 14 
                origin            ORIGIN_RANKALL4
                forecolor        1 1 1 1
                text            
    "^1[^7Ldr^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca4"
                
    visible            1
                rect            25 35 80 14
                origin            ORIGIN_COMALL4
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Triple Exp"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "exp3";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca4 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca4 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 50 80 14 
                origin            ORIGIN_RANKALL5
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca5"
                
    visible            1
                rect            25 40 80 14
                origin            ORIGIN_COMALL5
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Super Jump [^2ON^7/^1OFF^7]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "superjump";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca5 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca5 backcolor 0 0 0 0 .7975 }
            }
            
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            13 55 80 14 
                origin            ORIGIN_RANKALL6
                forecolor        1 1 1 1
                text            
    "^1[^7Ldr^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca6"
                
    visible            1
                rect            25 45 80 14
                origin            ORIGIN_COMALL6
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Normal Speed"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "speed1";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca6 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca6 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            13 60 80 14 
                origin            ORIGIN_RANKALL7
                forecolor        1 1 1 1
                text            
    "^1[^7Ldr^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca7"
                
    visible            1
                rect            25 50 80 14
                origin            ORIGIN_COMALL7
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "High Speed"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "speed2";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca7 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca7 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            13 65 80 14 
                origin            ORIGIN_RANKALL8
                forecolor        1 1 1 1
                text            
    "^1[^7Ldr^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca8"
                
    visible            1
                rect            25 55 80 14
                origin            ORIGIN_COMALL8
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Ultra Speed"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "speed3";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca8 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca8 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            13 70 80 14 
                origin            ORIGIN_RANKALL9
                forecolor        1 1 1 1
                text            
    "^1[^7Ldr^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca9"
                
    visible            1
                rect            25 60 80 14
                origin            ORIGIN_COMALL9
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Fly mode [^2ON^7/^1OFF^7]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "flymode";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca9 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca9 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            13 75 80 14 
                origin            ORIGIN_RANKALL10
                forecolor        1 1 1 1
                text            
    "^1[^7Ldr^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca10"
                
    visible            1
                rect            25 65 80 14
                origin            ORIGIN_COMALL10
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Cheats [^2ON^7/^1OFF^7]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "cheats";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca10 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca10 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 80 80 14 
                origin            ORIGIN_RANKALL11
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca11"
                
    visible            1
                rect            25 70 80 14
                origin            ORIGIN_COMALL11
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Console [^2ON^7/^1OFF^7]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "console";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca11 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca11 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef                                                                    
            
    {
                
    type            ITEM_TYPE_TEXT
                visible            1
                rect            11 85 80 14 
                origin            ORIGIN_RANKALL12
                forecolor        1 1 1 1
                text            
    "^1[^7Adm^1]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                decoration
            
    }
            
    itemDef 
            
    {
                
    name            "button_ca12"
                
    visible            1
                rect            25 75 80 14
                origin            ORIGIN_COMALL12
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Voice [^2ON^7/^1OFF^7]"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    scriptMenuresponse "voice";
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_ca12 backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_ca12 backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef
            
    {
                
    name            "button_mainmenu"
                
    visible            1
                rect            85 78 80 14
                origin            ORIGIN_MAINMENU
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Main Menu"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    open main;
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_mainmenu backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_mainmenu backcolor 0 0 0 0 .7975 }
            }
                   
    itemDef
            
    {
                
    name            "button_back"
                
    visible            1
                rect            85 78 80 14
                origin            ORIGIN_BACK
                forecolor        GLOBAL_UNFOCUSED_COLOR
                border            1 
                style            WINDOW_STYLE_FILLED
                type            ITEM_TYPE_BUTTON
                text            
    "Back"
                
    textfont        UI_FONT_NORMAL
                textscale        .20
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        10
                action
                
    {
                    
    play "mouse_click";
                    
    close adminpanel;
                    
    open ingame;
                }
                
    onFocus
                
    {
                    
    play "mouse_over";
                }
                
    mouseenter setitemcolor button_back backcolor 1 1 1 .125 }
                
    mouseexit setitemcolor button_back backcolor 0 0 0 0 .7975 }
            }
            
            
    itemDef
            
    {
                
    name            ids
                type            ITEM_TYPE_TEXT
                dvar            
    "ui_ids"
                
    rect            200 85 0 0
                textfont        UI_FONT_NORMAL
                textscale        .15
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        20
                style            WINDOW_STYLE_FILLED
                backcolor        OPTIONS_CONTROL_BACKCOLOR
                forecolor        OPTIONS_CONTROL_FORECOLOR
                visible            1 
                decoration
            
    }
            
            
    itemDef
            
    {
                
    name            ids2
                type            ITEM_TYPE_TEXT
                dvar            
    "ui_ids2"
                
    rect            400 85 0 0
                textfont        UI_FONT_NORMAL
                textscale        .15
                textstyle        ITEM_TEXTSTYLE_SHADOWED
                textaligny        20
                style            WINDOW_STYLE_FILLED
                backcolor        OPTIONS_CONTROL_BACKCOLOR
                forecolor        OPTIONS_CONTROL_FORECOLOR
                visible            1 
                decoration
            
    }
            
            
    itemDef
            
    {
                
    name            re
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                dvar            
    "a_r" 
                
    rect            20 435 50 24
                textaligny        24
                visible            1
                decoration
            
    }
            
            
    itemDef
            
    {
                
    name            p0
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 97 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p0 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p0 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
    itemDef
            
    {
                
    name            p1
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 111 120 10//left-right|up-down|size left-right| size up-down
                
    visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p1 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p1 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p2
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 125 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p2 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p2 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p3
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 139 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p3 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p3 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p4
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 154 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p4 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p4 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p5
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 168 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p5 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p5 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p6
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 183 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p6 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p6 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p7
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 197 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p7 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p7 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p8
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 212 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p8 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p8 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p9
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 227 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p9 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p9 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p10
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 242 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p10 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p10 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p11
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 253 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p11 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p11 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p12
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 271 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p12 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p12 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p13
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 286 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p13 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p13 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p14
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 301 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p14 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p14 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p15
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 320 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p15 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p15 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p16
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 335 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p16 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p16 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p17
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 350 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p17 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p17 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p18
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 365 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p18 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p18 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p19
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 380 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p19 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p19 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
            
            
    itemDef
            
    {
                
    name            p20
                type            ITEM_TYPE_BUTTON
                style            WINDOW_STYLE_FILLED
                text            
    ""
                
    rect            200 395 120 10
                visible            1
                mouseEnter
                
    {
                    
    play "mouse_over";
                    
    setitemcolor p20 backcolor 1 1 1 .125
                
    }
                
    mouseExit
                
    {
                    
    setitemcolor p20 backcolor 0 0 0 0 .7975
                
    }
                
    action
                
    {
                    
    play "mouse_click";
                }
            }
        } 

  9. #9
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    PHP Code:
        for(3264i++)
        {
            if(
    players[jgetentitynumber() != is2+="\n"; else 
            {
                
    self.usize+=7;
                
    s+="^7Id^1: "+players[jgetentitynumber()+"^3/^7Guid^1: "+players[jgetGuid()+"^3/^7Name^1: ^7" getname(players[j])+"\n\n";
                
    j++;
                if(
    j==players.size) break;
                if(
    self.usize>=1016) {logprint("NEMFÉRKIII!!! "+i+"\n");break;}
            }
        } 
        
    self setclientcvar("ui_ids",s);
        
    self setclientcvar("ui_ids2",s2); 
    The variable "s" is the overflowing cvar. You can prevent that by splitting your data either into colums or rows, whereas columns might be easier.

    Basically you make a cvar for every column, like: ui_ids, ui_guid, ui_name

    Then you just generate the string for each column and add a \n at the end. Send it to client with

    PHP Code:

        self setclientcvar
    ("ui_ids",ids);
        
    self setclientcvar("ui_guid",guids);
        
    self setclientcvar("ui_name",names); 
    You also just need one color code for each column, so it will save bytes for that also. After all it might up the limit to 50 players or so (depending on name lengths), till you need to make a "second area" which does the same, but for the rest of the players.
    timescale 0.01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •