Re: New AMXX Menu System
You don't need to make button 8 for that option anyway, make it on button 7 or whatever...Buttons "Next / Back" and "Exit" are maded automaticly.
|
Re: New AMXX Menu System
What i want is a switch ban times button in a playermenu (all the players on the server in the menu) so each time i press that button it cycle throu the ban times
and when i want to ban a player and press that players name he shall get banned with the bantime value visible in the menu right then, i hope i make sence here :S |
Re: New AMXX Menu System
Yeah, but with new amxx menu system is a bit hard...because you can't make a button that stays permanently on bottom of page...like in old style menu, but you already have this on "amxmodmenu" ...default by amxmodx.
|
Re: New AMXX Menu System
I have been helping Lantz on amxbans alot and i was thinking of trying to use the new menus in amxbans.
I know a way to do it. Playermenu where you select a player and when you press the player a ban time menu appears and when you select a bantime a reson menu appears but i dont like that way to do it :( |
Re: New AMXX Menu System
I believe it would be possible to store the ban time in a global variable. When you press the menu button it should cycle through the ban time once and reshow the menu again. If you understand what I mean?
|
Re: New AMXX Menu System
Nice tutorial, helped me. I find this menu system a lot easier, and since I don't often use dynamic menus it's great for me. +Karma ;D
|
Re: New AMXX Menu System
Is there any chance of someone explaining / tutorialising the callback stuff?
IIRC you do something fancy with making a callback handle with a function name, and then passing that in, but the bit I don't really get is how to, say, remove options for a player. If I took the time and trouble I'm sure I could learn this jazz, but I'm fairly sure someone already has, and isn't that the point of Snippets/Tutorials? Generally I create / destroy a menu every time it is used, but at times it is useful to adjust a menu on the fly. |
Re: New AMXX Menu System
Hmm, lemme give you an eg:
Code:
new Menu = menu_create("\ySome Menu", "MenuHandler"); Code:
new iAccess, Name[32], iCallback; |
Re: New AMXX Menu System
And I would use menu_item_setname to screw with their text before showing onscreen?
Funky. And thankyou. |
Re: New AMXX Menu System
Quote:
|
All times are GMT -4. The time now is 05:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.