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

Change numeric color for menu


Post New Thread Reply   
 
Thread Tools Display Modes
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 04-14-2023 , 10:45   Re: Change numeric color for menu
Reply With Quote #11

Quote:
Originally Posted by Uzviseni Bog View Post
Solved

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("My Menu""1.0""Me");
    
register_clcmd("say /menu""ShowMenu")
    new 
keys MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_9
    register_menucmd
(register_menuid("\yChange menu name:"), keys"UzviseniBog")

}

public 
ShowMenu(id)
{
    new 
menu[314]
    new 
keys MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_9
    formatex
(menu charsmax(menu) , "\yChange menu name:^n^n\r[\w1\r]. \wTEXT^n\r[\w2\r]. \wTEXT^n\r[\w3\r]. \wTEXT^n\r[\w4\r]. \wTEXT^n\r[\w5\r]. \wTEXT^n\r[\w6\r]. \wTEXT^n\r[\w7\r]. \wTEXT^n^n\r[\w9\r].\w Exit")
    
show_menu(idkeysmenu)
    return 
PLUGIN_HANDLED
}

public 
UzviseniBog(idkey)
{
    
//key will start at zero
    
if (key == 0)
    {
         
client_cmd(id"Number 1 function")
    } else if (
key == 1) {
         
client_cmd(id"Number 2 function")
    } else if (
key == 2) {
         
client_cmd(id"Number 3 function")
    } else if (
key == 3){
        
client_cmd(id"Number 4 function")
    } else if (
key == 4){
        
client_cmd(id"Number 5 function")
    } else if (
key == 5){
        
client_cmd(id"Number 6 function")
    } else if (
key == 6){
        
client_cmd(id"Number 7 function")
    } else if (
key == 9){

    }

That's an entirely different menu using formatex
HowToRuski is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 04-14-2023 , 11:24   Re: Change numeric color for menu
Reply With Quote #12

old fashioned method nice to use for some
__________________
mlibre 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 12:05.


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