Advertisement
Froki

Untitled

Jul 20th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>
  4. #include <colorchat>
  5.  
  6. #define PLUGIN "Meni"
  7. #define VERSION "1.0"
  8. #define AUTHOR "Fr0zen"
  9.  
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12.  
  13. register_clcmd("say /menu", "Meni")
  14. }
  15.  
  16.  
  17. public Meni(id)
  18. {
  19. new menu = menu_create("\yMenu \d:", "Meni_Handle");
  20. menu_additem(menu, "\wItem1");
  21. menu_additem(menu, "\wItem2");
  22. menu_display(id, menu);
  23. }
  24.  
  25. public Meni_Handle(id, menu, item)
  26. {
  27.  
  28.  
  29. if(item == MENU_EXIT)
  30. {
  31. menu_destroy(menu);
  32. return PLUGIN_CONTINUE;
  33. }
  34. menu_display(id, menu);
  35. switch(item)
  36. {
  37. case 0:
  38. {
  39. ColorChat(id,TEAM_COLOR,"^x03 Item1");
  40. }
  41.  
  42. case 1:
  43. {
  44. ColorChat(id, TEAM_COLOR,"^x03Item2");
  45. }
  46. }
  47. return PLUGIN_CONTINUE;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement