Raised This Month: $12 Target: $400
 3% 

Menu help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SnowWolf
Junior Member
Join Date: Sep 2017
Old 12-04-2017 , 13:35   Menu help
Reply With Quote #1

Hello. I write "help me".

I registered command
RegConsoleCmd("sm_menu", cmd_menu);

I make : Public action cmd_menu, public void Table, Public MenuCallBack.
In menu call back i have:

public MenuCallBack(Handle:menu, MenuAction:action, client, position)
{
if ( action == MenuAction_Select )
{
decl String:item[40];
GetMenuItem(menu, position, item, sizeof(item));
if(StrEqual(item, "ws"))
{
PrintToChat(client,"Something")
}
}

How to change that when someone clicks on the menu "1. Menu WS" it will open the menu, which is under the command sm_ws

If someone needs more code I can send
SnowWolf is offline
 



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 13:06.


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