Raised This Month: $344 Target: $400
 86%   Almost there!

Solved How to set 9 items per page with exit button.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 07-16-2020 , 05:43   How to set 9 items per page with exit button.
Reply With Quote #1

hi
i generated a menu & i want to make it 9 items per page but when i use this code:
PHP Code:
menu_setprop(menuMPROP_PERPAGE0); 
so Exit button removes.
but when i use this code
PHP Code:
menu_setprop(menuMPROP_PERPAGE9); 
so the menu doesn't work + it gives me error in console
Code:
Cannot add 9 items in menu.
I am posting full code if anyone can help me.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <fakemeta>
#include <engine>
#include <csx>
#include <newmenus>

public plugin_init()
{
    
register_plugin("Main Menu""1.0""MyMenu");
    
register_clcmd("say /bb_menu""ShowMenu"_"Select team");
    
register_clcmd("bb_menu""ShowMenu"_"Select team");
    
register_concmd("bb_menu""ShowMenu"_"Select team");
    
register_clcmd("chooseteam""ShowMenu")
    
}

public 
ShowMenu(id)
{
    new 
menu menu_create("\yRWC \rBaseBuilder v9.2 \yMenu""BB_MainMenu");

    
menu_additem(menu"\r \yChoose Class \w[\rHuman/Zombie\w]"""0); // case 0
    
menu_additem(menu"\r \yBuy Items \r[ALL Players]"""0); // case 1
    
menu_additem(menu"\r \yBanka \r[ALL Players]"""0); // case 2
    
menu_additem(menu"\r \yGeneral CMDs Menu \r[ALL Players]^n^n"""0); // case 3
    
menu_additem(menu"\r \yVIP Shop \r[VIP Only]"""0); // case 4
    
menu_additem(menu"\r \yADMIN Weapons Menu \r[ADMINS ONLY]^n^n"""0); // case 5
    
menu_additem(menu"\r \yAdmin Menu \r[ADMIN ONLY]"""0); // case 6
    
menu_additem(menu"\r \yAdmin Menu \r[ADMIN ONLY]"""0); // case 7
    
menu_additem(menu"\r \yAdmin Menu \r[ADMIN ONLY]"""0); // case 8
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_setprop(menuMPROP_PERPAGE9);
    
menu_setprop(menuMPROP_EXITNAME"\yExit");



    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
BB_MainMenu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
        case 
0: {
            
Classes(id);
        }    
        case 
1client_cmd(id"bb_shop");
        case 
2client_cmd(id"bb_banka");
        case 
3client_cmd(id"say /generalcmds");
        case 
4client_cmd(id"vips_shop");
        case 
5client_cmd(id"boss_menu");        
        case 
6client_cmd(id"admin_menu");       
        case 
7client_cmd(id"admin_menu");       
        case 
7client_cmd(id"admin_menu");           

    }    
    
menu_destroy(menu);

    return 
PLUGIN_HANDLED;
}

public 
Classes(id)
{
    new 
menu menu_create("\yRWC \rChoose Classes \Menu^n\y By \d[\rTSM - Mr.Pro\d]""Choose_Classes");

    
menu_additem(menu"\r \yHuman \rClasses"""0); // case 0
    
menu_additem(menu"\r \yZombie \rClasses"""0); // case 1

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
Choose_Classes(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
    
        case 
0client_cmd(id"say /humanclass");
        case 
1client_cmd(id"say /class");
    }    
    
menu_destroy(menu);

    return 
PLUGIN_HANDLED;

__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod

Last edited by DON KHAN 1; 07-16-2020 at 06:18.
DON KHAN 1 is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 07-16-2020 , 06:03   Re: How to set 9 items per page with exit button.
Reply With Quote #2

Remove:
Code:
        menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);         menu_setprop(menu, MPROP_PERPAGE, 9);         menu_setprop(menu, MPROP_EXITNAME, "\rExit");

Added:
Code:
  menu_additem(menu, "\r Exit", "", 0);
  menu_setprop(menu, MPROP_PERPAGE, 0);

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #include <hamsandwich> #include <fakemeta> #include <engine> #include <csx> #include <newmenus> public plugin_init() {     register_plugin("Main Menu", "1.0", "TSM - Mr.Pro");     register_clcmd("say /bb_menu", "ShowMenu", _, "Select team");     register_clcmd("bb_menu", "ShowMenu", _, "Select team");     register_concmd("bb_menu", "ShowMenu", _, "Select team");     register_clcmd("chooseteam", "ShowMenu")     } public ShowMenu(id) {     new menu = menu_create("\yRWC \rBaseBuilder v9.2 \yMenu^n\y By \d[\rTSM - Mr.Pro\d]", "BB_MainMenu");     menu_additem(menu, "\r \yChoose Class \w[\rHuman/Zombie\w]", "", 0); // case 0     menu_additem(menu, "\r \yBuy Items \r[ALL Players]", "", 0); // case 1     menu_additem(menu, "\r \yBanka \r[ALL Players]", "", 0); // case 2     menu_additem(menu, "\r \yGeneral CMDs Menu \r[ALL Players]^n^n", "", 0); // case 3     menu_additem(menu, "\r \yVIP Shop \r[VIP Only]", "", 0); // case 4     menu_additem(menu, "\r \yADMIN Weapons Menu \r[ADMINS ONLY]^n^n", "", 0); // case 5     menu_additem(menu, "\r \yAdmin Menu \r[ADMIN ONLY]", "", 0); // case 6     menu_additem(menu, "\r \yAdmin Menu \r[ADMIN ONLY]", "", 0); // case 7     menu_additem(menu, "\r \yAdmin Menu \r[ADMIN ONLY]", "", 0); // case 8
    menu_additem(menu, "\r Exit", "", 0);
   
    menu_setprop(menu, MPROP_PERPAGE, 0);
    menu_display(id, menu, 0);     return PLUGIN_HANDLED; } public BB_MainMenu(id, menu, item) {     if(item == MENU_EXIT)     {         menu_cancel(id);         return PLUGIN_HANDLED;     }     new command[6], name[64], access, callback;     menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);     switch(item)     {         case 0: {             Classes(id);         }            case 1: client_cmd(id, "bb_shop");         case 2: client_cmd(id, "bb_banka");         case 3: client_cmd(id, "say /generalcmds");         case 4: client_cmd(id, "vips_shop");         case 5: client_cmd(id, "boss_menu");                case 6: client_cmd(id, "admin_menu");                case 7: client_cmd(id, "admin_menu");                case 8: client_cmd(id, "admin_menu")
        case 9: menu_cancel(id);
    }        menu_destroy(menu);     return PLUGIN_HANDLED; } public Classes(id) {     new menu = menu_create("\yRWC \rChoose Classes \Menu^n\y By \d[\rTSM - Mr.Pro\d]", "Choose_Classes");     menu_additem(menu, "\r \yHuman \rClasses", "", 0); // case 0     menu_additem(menu, "\r \yZombie \rClasses", "", 0); // case 1     menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);     menu_display(id, menu, 0);     return PLUGIN_HANDLED; } public Choose_Classes(id, menu, item) {     if(item == MENU_EXIT)     {         menu_cancel(id);         return PLUGIN_HANDLED;     }     new command[6], name[64], access, callback;     menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);     switch(item)     {             case 0: client_cmd(id, "say /humanclass");         case 1: client_cmd(id, "say /class");     }        menu_destroy(menu);     return PLUGIN_HANDLED; }
__________________
Jailbreak AD 2.0

The greatest civilization of 🇮🇷IRAN🇮🇷
alferd is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 07-16-2020 , 06:14   Re: How to set 9 items per page with exit button.
Reply With Quote #3

PHP Code:
        case9menu_cancel(id); 
>>
PHP Code:
        case 9menu_cancel(id); 
Now working thanks
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
CookieCrumbler
Senior Member
Join Date: Feb 2013
Location: Australia
Old 07-16-2020 , 17:15   Re: How to set 9 items per page with exit button.
Reply With Quote #4

Alternatively you can use a blank menu spacer or several spacer depending how many you need

this is a spacer menu_addblank2( menu )

in the handler it doesnt matter where your case is so long as its after the amount of menu items so you cud put a callback to return to the front menu or to exit in either case 8 or 9 in the handler

case: _
{
BuyMenu(id) < will take it back to the front page
menu_destroy(menu) < will destroy the menu
}

PHP Code:
public BuyMenu(id
{
    new 
menu menu_create("Buy Menu:""BuyMenu_Handler")
    
menu_additem(menu"Pistols"""0)
    
menu_additem(menu"Shotguns"""0)
    
menu_additem(menu"Submachine Guns"""0)
    
menu_additem(menu"Rifles"""0)
    
menu_additem(menu"Machine Guns"""0)
    
menu_additem(menu"Primary Ammo"""0)
    
menu_additem(menu"Secondary Ammo"""0)
    
menu_additem(menu"Equipment"""0)
    
menu_addblank2menu )
    
menu_additem(menu"Exit"""0)
    
menu_setpropmenuMPROP_PERPAGE)
    
menu_display(idmenu0)
}

public 
BuyMenu_Handler(idmenuitem)
 { 
    switch(
item)
    {
        case 
0: { BuyMenu_Pistols(id) ;}
        case 
1: { BuyMenu_Shotguns(id) ;}
        case 
2: { BuyMenu_SubmachinesGuns(id) ;}
        case 
3: { BuyMenu_Rifles(id) ;}
        case 
4: { BuyMenu_Machineguns(id) ;}
        case 
5: { BuyMenu_PrimaryAmmo(id) ;}
        case 
6: { BuyMenu_SecondaryAmmo(id) ;}
        case 
7: { BuyMenu_Equipment(id) ;}
        case 
9: { BuyMenu(id) ;}
    }
    return 
PLUGIN_HANDLED 



EDIT : Here is a bigger script you can glean and learn from about what is doing what it is abase on the counterstrike 1.6 buy menu i havent quite finshed this yet its jsut scrap code with random fill values

PHP Code:
public BuyMenu(id)
{
    new 
menu menu_create("Buy Menu:""BuyMenu_Handler")
    
menu_additem(menu"Pistols"""0)
    
menu_additem(menu"Shotguns"""0)
    
menu_additem(menu"Submachine Guns"""0)
    
menu_additem(menu"Rifles"""0)
    
menu_additem(menu"Machine Guns"""0)
    
menu_additem(menu"Primary Ammo"""0)
    
menu_additem(menu"Secondary Ammo"""0)
    
menu_additem(menu"Equipment"""0)
    
menu_addblank2menu )
    
menu_additem(menu"Exit"""0)
    
menu_setpropmenuMPROP_PERPAGE)
    
menu_display(idmenu0)
}
    
public 
BuyMenu_Handler(idmenuitem

    switch(
item)
    {
        case 
0: { BuyMenu_Pistols(id) ;}
        case 
1: { BuyMenu_Shotguns(id) ;}
        case 
2: { BuyMenu_SubmachinesGuns(id) ;}
        case 
3: { BuyMenu_Rifles(id) ;}
        case 
4: { BuyMenu_Machineguns(id) ;}
        case 
5: { BuyMenu_PrimaryAmmo(id) ;}
        case 
6: { BuyMenu_SecondaryAmmo(id) ;}
        case 
7: { BuyMenu_Equipment(id) ;}
        case 
8: { menu_destroy(menu) ;} 
        case 
9: { menu_destroy(menu) ;}
    }
    return 
PLUGIN_HANDLED
}

BuyMenu_Pistols(id)
{
    new 
menu menu_create("Pistols:""BuyMenu_Pistols2")
    
menu_additem(menu"9x19mm Sidearm $400"""0)
    
menu_additem(menu"KM .45 Tactical $500"""0)
    
menu_additem(menu"228 Compact $ 600"""0)
    
menu_additem(menu"Night Hawk 50.c $650"""0)
    if(
t_1[id] == true ) { menu_additem(menu".40 Dual Elites $800"""0) ;}
    if(
t_2[id] == true) { menu_additem(menu"ES Five-Seven $750"""0) ;}
    
menu_addblank2menu )
    
menu_addblank2menu )
    
menu_addblank2menu )
    
menu_addblank2menu )
    
menu_additem(menu"Exit"""0)
    
menu_setpropmenuMPROP_PERPAGE)
    
menu_display(idmenu0
}

public 
BuyMenu_Pistols2(idmenuitem
{
    switch(
item){
    
    case 
0:    
    {    
        
//if(Team1[id] == true ) { client_print(id, print_chat, "You are already own this weapon") ;}
        //else { give_item(id, "weapon_glock") ;}
    
}
        
    
    case 
1:
    {
        
//if() { client_print(id, print_chat, "You are already own this weapon") ;}
        //else { //give_item(id, "weapon_glock") ;}
    
}
    
    case 
2:
    {
        
//if() { client_print(id, print_chat, "You are already own this weapon") ;}
        //else { //give_item(id, "weapon_glock") ;}
    
}
    
    case 
3:
    {
        
//if() { client_print(id, print_chat, "You are already own this weapon") ;}
        //else { //give_item(id, "weapon_glock") ;}
    
}
    
    case 
4:
    {
        
//if() { client_print(id, print_chat, "You are already own this weapon") ;}
        //else { //give_item(id, "weapon_glock") ;}
    
}
    
    case 
5:
    {
        
//if() { client_print(id, print_chat, "You are already own this weapon") ;}
        //else { //give_item(id, "weapon_glock") ;}
    
}
    
    case 
6:
    { 
        if (
is_user_connected(id)) { BuyMenu(id) ;} 
    } 
    
    }    
    
    return 
PLUGIN_HANDLED 
}

BuyMenu_Shotguns(id)

    new 
menu menu_create("Shotguns:""BuyMenu_Shotguns2")    
    
menu_additem(menu"Shotgun1 $900"""0)
    
menu_additem(menu"Shotgun2 $1150"""0)    
    
menu_display(idmenu0

 
public 
BuyMenu_Shotguns2(idmenuitem

    switch(
item)
    {    
        case 
0:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
            
//give_item(id, "weapon_glock")    
        
}

        }
        
        case 
1:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
            
//give_item(id, "weapon_glock")    
        
}

        }
        
        case 
MENU_EXIT:
        {
            if (
is_user_connected(id))
            
BuyMenu(id)
        }        
    }
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED 
}

BuyMenu_SubmachinesGuns(id)

    new 
menu menu_create("Submachine Guns:""BuyMenu_SubmachinesGuns2")    
    
menu_additem(menu"Submachine Gun1 $900"""0)
    
menu_additem(menu"Submachine Gun2 $1150"""0)
    
menu_additem(menu"Submachine Gun3 $900"""0)
    
menu_additem(menu"Submachine Gun4 $1150"""0)
    
menu_additem(menu"Submachine Gun5 $900"""0)
    
menu_additem(menu"Submachine Gun6 $1150"""0)
    
menu_display(idmenu0) ;} 
 
public 
BuyMenu_SubmachinesGuns2(idmenuitem)

    switch(
item)
    {    
        case 
0:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
            
//give_item(id, "weapon_glock")    
        
}

        }
        
        case 
1:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
            
//give_item(id, "weapon_glock")    
        
}

        }
        
        case 
2
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
            
//give_item(id, "weapon_shotgun1")    
        
}

        }
        
        case 
3:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
            
//give_item(id, "weapon_shotgun2")    
        
}

        }
        
        case 
MENU_EXIT:
        {
            if (
is_user_connected(id))
            
BuyMenu(id)
        }
        
    }
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED
}

BuyMenu_Rifles(id

    new 
menu menu_create("Rifles:""BuyMenu_Rifles2")    
    
menu_additem(menu"Rifles 1 $900"""0)
    
menu_additem(menu"Rifles 2 $1150"""0)
    
menu_additem(menu"Rifles 3 $900"""0)
    
menu_additem(menu"Rifles 4 $1150"""0)
    
menu_additem(menu"Rifles 5 $900"""0)
    
menu_additem(menu"Rifles 6 $1150"""0)
    
menu_additem(menu"Rifles 7 $900"""0)
    
menu_additem(menu"Exit"""0)
    
menu_setpropmenuMPROP_PERPAGE)
    
menu_display(idmenu0)

 
public 
BuyMenu_Rifles2(idmenuitem)
{
    switch(
item)
    {    
        case 
0:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
            
//give_item(id, "weapon_glock" )    
        
}

        }
        
        case 
1:
        {
        
//give_item(id, "weapon_glock" )
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
            
//give_item(id, "weapon_glock")    
        
}

        }
        
        case 
2
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
            
//give_item(id, "weapon_shotgun1")    
        
}

        }
        
        case 
3:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
        
//give_item(id, "weapon_shotgun2")    
        
}

        }
        
        case 
4:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
        
//give_item(id, "weapon_shotgun2")    
        
}

        }
        
        case 
5:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
        
//give_item(id, "weapon_shotgun2")    
        
}

        }
        
        case 
6:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
        
//give_item(id, "weapon_shotgun2")    
        
}

        }
        
        case 
7:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
        
//give_item(id, "weapon_shotgun2")    
        
}

        }
        
        case 
8:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
        
//give_item(id, "weapon_shotgun2")    
        
}

        }
        
        case 
9:
        {
            
BuyMenu(id)
        }
        
        
//case MENU_EXIT:
        //{
            //if (is_user_connected(id))
            //BuyMenu(id)
        //}
        
    
}
    return 
PLUGIN_HANDLED
}

BuyMenu_Machineguns(id

    new 
menu menu_create("Machine Guns:""BuyMenu_Machineguns2")    
    
menu_additem(menu"Rifles 1 $900"""0)
    
menu_display(idmenu0)

 
public 
BuyMenu_Machineguns2(idmenuitem)

    switch(
item){    
        case 
0:
        {
        
//if(w_1a[id] == true)
        
{
            
client_print(idprint_chat"You are already own this weapon")
        }
        
        
//else
        
{
            
//give_item(id, "weapon_glock")    
        
}

        }
        
        case 
MENU_EXIT:
        {
            if (
is_user_connected(id))
            
BuyMenu(id)
        }
        
    }
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED
}

BuyMenu_PrimaryAmmo(id

    
//if (is_user_connected(id)) { // }
    
menu_destroy(menu)

 
BuyMenu_SecondaryAmmo(id

    
// if (is_user_connected(id)) { // ;}
    
menu_destroy(menu)

 
BuyMenu_Equipment(id

    new 
menu menu_create("Equipment :""BuyMenu_Equipment2")    
    
menu_additem(menu"Kevlar $900"""0)
    
menu_additem(menu"Kevlar & Helmet $900"""0)
    
menu_additem(menu"Flash Grenade $90"""0)
    
menu_additem(menu"HE Grenade $90"""0)
    
menu_additem(menu"Smoke Grenade $90"""0)
    if(
t_2[id] == true) { menu_additem(menu"Defuse Kit $900"""0) ;}
    
menu_additem(menu"NightVision $900"""0)
    if(
t_2[id] == true) { menu_additem(menu"Tactical Shield $900"""0) ;}
    if(
t_1[id] == true || t_2[id] == true) { menu_addblank2menu ) ;}
    if(
t_1[id] == true) { menu_addblank2menu ) ;}
    
menu_additemmenu"Go Back ) ;}
    menu_additem(menu, "
Exit", "", 0)
    menu_setprop( menu, MPROP_PERPAGE, 0 )
    menu_display(id, menu, 0)

 
public BuyMenu_Equipment2(id, menu, item)

    switch(item){    
    
    case 0:
    { 
        //if(Team1[id] == true) { client_print(id, print_chat, "
You are already own this weapon") ;} 
        //else{ give_item(id, "
weapon_glock")    ;}
    }
    
    case 1:
    { 
        //if(Team1[id] == true) { client_print(id, print_chat, "
You are already own this weapon") ;} 
        //else{ give_item(id, "
weapon_glock")    ;}
    }
    
    case 2:
    { 
        //if(Team1[id] == true) { client_print(id, print_chat, "
You are already own this weapon") ;} 
        //else{ give_item(id, "
weapon_glock")    ;}
    }
    
    case 3:
    { 
        //if(Team1[id] == true) { client_print(id, print_chat, "
You are already own this weapon") ;} 
        //else{ give_item(id, "
weapon_glock")    ;}
    }
    
    case 4:
    { 
        //if(Team1[id] == true) { client_print(id, print_chat, "
You are already own this weapon") ;} 
        //else{ give_item(id, "
weapon_glock")    ;}
    }
    
    case 5:
    { 
        //if(Team1[id] == true) { client_print(id, print_chat, "
You are already own this weapon") ;} 
        //else{ give_item(id, "
weapon_glock")    ;}
    }
    
    case 6:
    { 
        //if(Team1[id] == true) { client_print(id, print_chat, "
You are already own this weapon") ;} 
        //else{ give_item(id, "
weapon_glock")    ;}
    }
    
    case 7:
    { 
        //if(Team1[id] == true) { client_print(id, print_chat, "
You are already own this weapon") ;} 
        //else{ give_item(id, "
weapon_glock")    ;}
    }
    
    case 8:
    { 
        menu_destroy(menu)
    }
    
    case 9:
    { 
        BuyMenu(id)
    }
    
    }
    return PLUGIN_HANDLED

__________________
--------------------------------------------------
C is for cookie ... thats good enuff 4 me

Last edited by CookieCrumbler; 07-16-2020 at 18:38.
CookieCrumbler is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 07-17-2020 , 05:39   Re: How to set 9 items per page with exit button.
Reply With Quote #5

Quote:
Originally Posted by CookieCrumbler View Post
Spoiler
Okay thank u next time i will look this menu when i need help about menu
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:34.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode