Raised This Month: $ Target: $400
 0% 

[small] Color menu coding.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JestsG
New Member
Join Date: Jan 2016
Old 01-14-2016 , 15:13   [small] Color menu coding.
Reply With Quote #1

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) {

Last edited by JestsG; 01-14-2016 at 15:22.
JestsG is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 01-14-2016 , 15:29   Re: [small] Color menu coding.
Reply With Quote #2

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
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 01-14-2016 at 15:30. Reason: spelling fix
addons_zz is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-14-2016 , 15:33   Re: [small] Color menu coding.
Reply With Quote #3

Quote:
Originally Posted by JestsG View Post
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.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 01-14-2016 at 15:44.
wickedd is offline
JestsG
New Member
Join Date: Jan 2016
Old 01-14-2016 , 15:53   Re: [small] Color menu coding.
Reply With Quote #4

Quote:
Originally Posted by addons_zz View Post
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 View Post
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?

Last edited by JestsG; 01-14-2016 at 15:57.
JestsG is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-14-2016 , 16:05   Re: [small] Color menu coding.
Reply With Quote #5

Use \r, \w, \y
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 01-17-2016 , 08:51   Re: [small] Color menu coding.
Reply With Quote #6

Don't use / (Slash lower left to upper right), use \ (Slash upper left to lower right).
redivcram 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:24.


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