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

Solved [Plugin Request] Simonmenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MrGaben
New Member
Join Date: Apr 2017
Old 04-02-2017 , 14:59   [Plugin Request] Simonmenu
Reply With Quote #1

Hi ! I have a Counter Strike 1.6 server, with all of the Jailbreak mod set up, but I need a simonmenu plugin. I tried to make one, but I failed, it only shown me the menu, but when I tapped a key it just closed, and nothing was working. I need your help guys, please !

Model :

Meniu Simon :
1. Deschide celulele (open cells, command is /open)
2. Ding! (optional --> if you want to add this, give me a sound please)
3. Meniu zile speciale (Special Days menu, command is /meniuzile)
4. Meniu Free Day (Free Day menu, command is /fd)
5. Box (prisoners can box, command is /box)
6. Meniu fotbal (football menu, command is /ball)

[You can also make the whole menu in English, I will translate it myself]

If you can help me, I will be the happiest person on Earth ever !

Last edited by MrGaben; 04-03-2017 at 09:17.
MrGaben is offline
RAW_192
Senior Member
Join Date: Feb 2017
Old 04-02-2017 , 17:14   Re: [Plugin Request] Simonmenu
Reply With Quote #2

Hope This Helps ..

Type /menu to open it

Quote:
#include <amxmodx>

public plugin_init()
{
register_plugin("Menu", "1.0", "MrGaben");
register_clcmd("say /menu", "ShowMenu", _, "Brings Up Menu");
}

public ShowMenu(id)
{
new menu = menu_create("Meniu Simon", "MrGaben");

menu_additem(menu, "Deschide celulele", "", 0); // case 0
menu_additem(menu, "Ding!", "", 0); // case 1
menu_additem(menu, "Meniu zile speciale ", "", 0); // case 2
menu_additem(menu, "Meniu Free Day", "", 0); // case 3
menu_additem(menu, "Box", "", 0); // case 4
menu_additem(menu, "Meniu fotbal", "", 0); // case 5

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_setprop(menu, MPROP_PERPAGE, 6);
menu_setprop(menu, MPROP_NOCOLORS, 1);

menu_display(id, menu, 0);

return PLUGIN_HANDLED;
}

public MrGaben(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_cancel(id);
return PLUGIN_HANDLED;
}

new command[6], name[64], access, callback;

menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);

switch(item)
{
case 0: client_cmd(id, "say /open" );
case 1: client_cmd(id, "say /ding");
case 2: client_cmd(id, "say /meniuzile");
case 3: client_cmd(id, "say /fd");
case 4: client_cmd(id, "say /box");
case 5: client_cmd(id, "say /ball");
}

menu_destroy(menu);

return PLUGIN_HANDLED;
}

Last edited by RAW_192; 04-02-2017 at 17:17.
RAW_192 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-02-2017 , 19:19   Re: [Plugin Request] Simonmenu
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=284324
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
MrGaben
New Member
Join Date: Apr 2017
Old 04-03-2017 , 09:16   Re: [Plugin Request] Simonmenu
Reply With Quote #4

Thank you RAW_192 ! It works flawless <3 I changed a few words from your .sma code and it works ! I like that T can also use it, but they can only tap a key, because all the commands are working at CT only <3 So it works, thank you guys, I really appreciate ! <3 <3 <3 <3 <3 <3 <3 <3
MrGaben is offline
RAW_192
Senior Member
Join Date: Feb 2017
Old 04-03-2017 , 14:16   Re: [Plugin Request] Simonmenu
Reply With Quote #5

Quote:
Originally Posted by MrGaben View Post
Thank you RAW_192 ! It works flawless <3 I changed a few words from your .sma code and it works ! I like that T can also use it, but they can only tap a key, because all the commands are working at CT only <3 So it works, thank you guys, I really appreciate ! <3 <3 <3 <3 <3 <3 <3 <3
Glad to help
RAW_192 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 12:17.


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