AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change/hide buttons on menu? (https://forums.alliedmods.net/showthread.php?t=325767)

supertrio17 07-05-2020 21:37

Change/hide buttons on menu?
 
Hey, so I came across one server where they have this kind of menu, I'm not really sure how to replicate it, can anyone help?
https://i.imgur.com/KCSlJd5.png

OciXCrom 07-05-2020 21:56

Re: Change/hide buttons on menu?
 
Code:
menu_setprop(menu, MPROP_NUMBER_COLOR, "\r|>\y")

supertrio17 07-05-2020 22:03

Re: Change/hide buttons on menu?
 
Quote:

Originally Posted by OciXCrom (Post 2708820)
Code:
menu_setprop(menu, MPROP_NUMBER_COLOR, "\r|>\y")

Now I get this
https://i.imgur.com/VYtkQPC.png

fysiks 07-06-2020 01:40

Re: Change/hide buttons on menu?
 
You're using the "new menu" system which is is built around a particular format which is not capable of doing what you show in the image. You have to use original menu system (register_menucmd(), etc.) which is more flexible.

alferd 07-06-2020 03:49

Re: Change/hide buttons on menu?
 
https://wiki.alliedmods.net/Advanced...X_Mod_X)#Menus

OciXCrom 07-06-2020 08:53

Re: Change/hide buttons on menu?
 
Either use the old menu system or simply settle with a different format. With the new menus you can achieve "|> 1. <|". The period after the number cannot be removed. Be creative or use the old style.


All times are GMT -4. The time now is 17:14.

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