get_user_menu
hi , can some 1 help me figure out how to use get_user_menu the right way . I want to make it so if the menu disapeers the player dies , so they have to pick from the menu or die , forcing them to practice with the weapons i want . i cant seem to get it rite. I tried to do
Code:
|
Re: get_user_menu
if your having a problem making a menu and it keys use amxmodx studio and go to generators and click on menu generators.
or you could use this http://sniperbeamer.amxmod.info/menu...numaker.htm?en |
Re: get_user_menu
no i know how to make menus im not a noob. Let me explaine further . I have a menu that will dispaly 2 options , practice or die. the menus works both options work , but i want to make it so that if the player doesnt choose , for instance if he jsut lets the menu go away and doesnt choose , then i want him to die also. so get_user_menu returns 0 if the player is not looking at a menu (ie he let the menu go away) . but i cant seem to get the paramters right . let me show u my code so far
Code:
|
Re: get_user_menu
ur code is kinda of messed up and ur using fm utli,
Code:
When there is no menu the index is 0. If the id is negative then the menu is VGUI in other case the id is fromand why not just make an exit key and slay them when they press it? |
Re: get_user_menu
well the problem is that if they decide not to press it the menu will go away . they avoid pressing it . so they wont press exit or 1 or 2 . so i want to make it so that if they dont press anything theyll die also . like a fail safe. and yes i already read the documentation. thats how i knew what it returned for a value. and i tried to pass paramters trough it and it still gave me erorrs. and my code isnt finished so this is only half of the code. its not finished yet . but i cant get the get_user_menu to work. :|
|
Re: get_user_menu
hmm how about a task after xSeconds to close it and kill them?
|
Re: get_user_menu
I had considered this before , but then I came to the get_user_menu. which seems like a more appropriate less cpu exspensive way. if i dont have to i dont want to use a set_task. So im using that as a last resort . I'd really like to figure out a way to use the get_user_menu:cry:
|
Re: get_user_menu
first of all your menu method sux, much easier to use cases, then if you use cases you could do the following
Code:
I will work on your menu dont have time right at the moment but if someone hasnt done it by tomarrow I can show a different method. |
Re: get_user_menu
also dont use server_cmd to set cvars
|
Re: get_user_menu
here is what I have so far, removed server cmds you can add those when you use it correctly and removed cvar check cause I didnt feel like putting atm but you can add those but this should work:
Code:
|
| All times are GMT -4. The time now is 04:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.