Last Choosen Weapon Menu
1 Attachment(s)
i have a simple weapon menu:
PHP Code:
can someone help me creating it in my menu ?? I want like CSDM Gun menu: ----------------------------------------- 1. New Weapons 2. Previous Setup 3. Don't Show this menu again. Type /guns to enable this menu again ----------------------------------------- thanks b4.... |
Re: Last Choosen Weapon Menu
You can see how I did it:
PHP Code:
|
Re: Last Choosen Weapon Menu
Quote:
Have a look at csdm plugins sources. |
Re: Last Choosen Weapon Menu
Quote:
Quote:
for newbie like me, i hope you modify my simple menu and add a simple code of "previous Setup" menu. thanks. bcause i'll add a weapon from other plugin. |
Re: Last Choosen Weapon Menu
First, don't use client_cmd in PlayerSpawn, this show your little skill ;)
Directly call MyMenu(id), is better, also, check that player is alive in spawn event, else you gonna have error logs. Same in menu handler, use client_print, not client_cmd, GOD !! So, in menu handler, use player choice to store in a variable (has to be an array) In menu creation, if player variable is filled, add to 2 options at the end of the menu. In menu handler, if player chooses last or last and don't ask, use the stored choice variable to give items. And if choice is last and don't ask, store it in another global variable So in PlayerSpawn, if that other global variable is set, give directly items instead of showing menu. If you can't do this because it is too difficult, then post a request in the appropriated forum. |
Re: Last Choosen Weapon Menu
Quote:
EDIT: check this plugin out. https://forums.alliedmods.net/showpo...39&postcount=6 it shows you better way to do weapons menu with remember last choice. |
| All times are GMT -4. The time now is 16:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.