Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #include <sourcemod>
  2. public Plugin:myinfo =
  3. {
  4. name = "dr_menu",
  5. author = "Dudnes",
  6. description = "menu",
  7. version = "1.0",
  8. url = "<- URL ->"
  9. }
  10. public void OnPluginStart()
  11. {
  12. RegConsoleCmd("menu_sklep", Menu_Sklep);
  13. RegConsoleCmd("menu_shop", Menu_Shop);
  14. }
  15.  
  16. public int Menu_Pomocy(Menu menu, MenuAction action, int client, int itemNum)
  17. {
  18. if(action == MenuAction_Select)
  19. {
  20. char info[32];
  21. GetMenuItem(menu, itemNum, info, sizeof(info));
  22.  
  23. if (strcmp(info, "opcja2") == 0) {
  24. ClientCommand(client, "sm_sklepsms");
  25. }
  26. if (strcmp(info, "opcja1") == 0) {
  27. ClientCommand(client, "sm_store");
  28. }
  29. }
  30. }
  31.  
  32. public Action Menu_Test1(int client, int args)
  33. {
  34. Menu menu = new Menu(Menu_Pomocy);
  35. menu.SetTitle("Menu Sklepu - Katujemy.eu");
  36. menu.AddItem("opcja1", "Sklep serwerowy");
  37. menu.AddItem("opcja2", "Sklep SMS");
  38. menu.ExitButton = true;
  39. menu.Display(client, 120);
  40.  
  41. return Plugin_Handled;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement