Raised This Month: $ Target: $400
 0% 

Last Choosen Weapon Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-13-2013 , 00:49   Re: Last Choosen Weapon Menu
Reply With Quote #1

Quote:
But I believe it's a poor way
Yes it is.


Have a look at csdm plugins sources.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
m4m3ts
Senior Member
Join Date: Jun 2012
Old 05-13-2013 , 00:58   Re: Last Choosen Weapon Menu
Reply With Quote #2

Quote:
Originally Posted by Unkolix View Post
You can see how I did it:
Quote:
Originally Posted by ConnorMcLeod View Post
Have a look at csdm plugins sources.
thanks for the example...but it is difficult to understand you'rs, or csdm plugin cz it's more complicated then my menu.

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.

Last edited by m4m3ts; 05-13-2013 at 00:59.
m4m3ts is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-13-2013 , 01:10   Re: Last Choosen Weapon Menu
Reply With Quote #3

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.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 16:21.


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