AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [small] Color menu coding. (https://forums.alliedmods.net/showthread.php?t=277713)

JestsG 01-14-2016 15:13

[small] Color menu coding.
 
Hello, I was wondering if there is anyway you can change the color for this type of menus. Ive tried several types of codes all I get are errors. I tried putting the slash /r, /y, /w and still no success. Can someone provide me with some help or what should I do? Btw im using a VIP plugin.

}

public Showrod(id) {
show_menu(id, Keysrod, "| Free VIP Guns |^n1. Get AWP+Deagle ^n2. Get M4A1+Deagle ^n3. Get AK47+Deagle ^n0. Exit^n", -1, "rod") // Display menu
}
public Pressedrod(id, key) {
/* Menu:
*| VIP Gun Menu | < I want color here!
*1. Get AWP+Deagle < Here...
*2. Get M4A1+Deagle < Here...
*3. Get AK47+Deagle < Here...
*0. Exit < Here
*/
switch (key) {

addons_zz 01-14-2016 15:29

Re: [small] Color menu coding.
 
What mod you are using? Not all support colored menus. Check https://www.amxmodx.org/api/amxmisc/colored_menus

See also this complete tutorial: New AMXX Menu System

wickedd 01-14-2016 15:33

Re: [small] Color menu coding.
 
Quote:

Originally Posted by JestsG (Post 2383324)
I tried putting the slash /r, /y, /w and still no success.

Should be \r, \y, \w

Edit:
PHP Code:

show_menu(idKeysrod"| Free VIP Guns |^n1. Get AWP+Deagle ^n2. Get M4A1+Deagle ^n3. Get AK47+Deagle ^n0. Exit^n", -1"rod"

This where you can change the color.

JestsG 01-14-2016 15:53

Re: [small] Color menu coding.
 
Quote:

Originally Posted by addons_zz (Post 2383328)
What mod you are using? Not all support colored menus. Check https://www.amxmodx.org/api/amxmisc/colored_menus

See also this complete tutorial: New AMXX Menu System

That would be CS. And I know its supported, only problem cant find the proper code for it.

Quote:

Originally Posted by wickedd (Post 2383329)
Should be \r, \y, \w

Edit:
PHP Code:

show_menu(idKeysrod"| Free VIP Guns |^n1. Get AWP+Deagle ^n2. Get M4A1+Deagle ^n3. Get AK47+Deagle ^n0. Exit^n", -1"rod"

This where you can change the color.

Wickedd I tried that, when I go ingame and check the menu it appears with the slash and letter. Is there something else I need to add?

wickedd 01-14-2016 16:05

Re: [small] Color menu coding.
 
Use \r, \w, \y

redivcram 01-17-2016 08:51

Re: [small] Color menu coding.
 
Don't use / (Slash lower left to upper right), use \ (Slash upper left to lower right).


All times are GMT -4. The time now is 09:24.

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