Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- public Plugin:myinfo =
- {
- name = "dr_menu",
- author = "Dudnes",
- description = "menu",
- version = "1.0",
- url = "<- URL ->"
- }
- public void OnPluginStart()
- {
- RegConsoleCmd("menu_sklep", Menu_Sklep);
- RegConsoleCmd("menu_shop", Menu_Shop);
- }
- public int Menu_Pomocy(Menu menu, MenuAction action, int client, int itemNum)
- {
- if(action == MenuAction_Select)
- {
- char info[32];
- GetMenuItem(menu, itemNum, info, sizeof(info));
- if (strcmp(info, "opcja2") == 0) {
- ClientCommand(client, "sm_sklepsms");
- }
- if (strcmp(info, "opcja1") == 0) {
- ClientCommand(client, "sm_store");
- }
- }
- }
- public Action Menu_Test1(int client, int args)
- {
- Menu menu = new Menu(Menu_Pomocy);
- menu.SetTitle("Menu Sklepu - Katujemy.eu");
- menu.AddItem("opcja1", "Sklep serwerowy");
- menu.AddItem("opcja2", "Sklep SMS");
- menu.ExitButton = true;
- menu.Display(client, 120);
- return Plugin_Handled;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement