Raised This Month: $51 Target: $400
 12% 

Solved Create Menu with gaps ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
swarmachine
Member
Join Date: Aug 2015
Location: {Baltic States}
Old 07-09-2017 , 15:18   Create Menu with gaps ?
Reply With Quote #1

i have found here this code :

Code:
#include <amxmodx>
#include <colorchat>

#pragma semicolon 1
#define VERSION "1.0.0"

new const g_szCommands[][] = 
{
    "amx_kickmenu",
    "amx_banmenu",
    "amx_slapmenu",
    "amx_teammenu",
    "amx_mapmenu",
    "amx_votemapmenu"
};

new g_iMenuId;


public plugin_init()
{    
    register_plugin("Admin Menu", VERSION, "Drekes");
    
    register_clcmd("say /am", "CmdAm");
    
    g_iMenuId = menu_create("\wA\ydmin \wM\yeniu", "HandleMenu");
    menu_additem(g_iMenuId, "Ismesti Zaideja", "1");
    menu_additem(g_iMenuId, "Isbaninti Zaideja", "2");
    menu_additem(g_iMenuId, "Nuzudyti / Primusti Zaideja", "3");
    menu_additem(g_iMenuId, "Permesti Zaideja", "4");
    menu_additem(g_iMenuId, "Pakeisti Zaideja", "5");
    menu_additem(g_iMenuId, "Nubalsuoti Zemelapi", "6");
    menu_setprop(g_iMenuId, MPROP_EXITNAME, "Iseiti");
}

public CmdAm(id, iLvl, iCid)
{
    if(!(get_user_flags(id) & ADMIN_MENU))
    {
        ColorChat(id, GREEN, "[Slave]^x01 Atsiprasome, bet jus neturite teises matyti Admin Meniu !");
        return PLUGIN_HANDLED;
    }

    menu_display(id, g_iMenuId);

    return PLUGIN_HANDLED;
}

public HandleMenu(id, iMenuId, iItem)
{
    if(iItem == MENU_EXIT)    
        return PLUGIN_HANDLED;

    client_cmd(id, "%s", g_szCommands[iItem]);
    
    return PLUGIN_HANDLED;
}
but how make gaps ?

ETC:

MENU_TITLE
1.ITEM
2.ITEM
(HERE WOULD BE GAP)
3.ITEM
4.ITEM
(HERE AGAIN WOULD BE GAP)
5.ITEM
6.ITEM
---------------
?
Also i want know is if possible to add fonts to menu?

Last edited by swarmachine; 01-14-2018 at 15:15.
swarmachine is offline
Send a message via Skype™ to swarmachine
SpawnerF
Member
Join Date: Apr 2017
Location: Morocco
Old 07-09-2017 , 16:45   Re: Create Menu with gaps ?
Reply With Quote #2

using ^n or menu_addblank
__________________
XX was created just for giving evidence and not meant to damage public servers.
&We do not test on public servers.
Thank's.
SpawnerF is offline
KING Army
Member
Join Date: Mar 2016
Old 07-09-2017 , 18:55   Re: Create Menu with gaps ?
Reply With Quote #3

PHP Code:
menu_additem(g_iMenuId"Isbaninti Zaideja""2"); 
-->

PHP Code:
menu_additem(g_iMenuId"Isbaninti Zaideja^n""2"); 
__________________
KING Army is offline
Reply



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 09:37.


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