hlmod.hu
https://hlmod.hu/

motd ablak több
https://hlmod.hu/viewtopic.php?f=10&t=9634
Oldal: 1 / 1

Szerző:  ChaspeR [2013.07.21. 18:59 ]
Hozzászólás témája:  motd ablak több

Sziasztok!
Valaki megtudná nekem ezeket csinálni ,hogy elődobja 1 motd. ablakba mindet külön külön! nem akarok külön pluginnal megoldani mindet.
/lcssms
/adminsms
/vipsms

Köszi:)

Szerző:  CrB [2013.07.21. 19:54 ]
Hozzászólás témája:  Re: motd ablak több

Nem tudom, hogy erre gondolsz e. Nem nagyon értettem, hogy mit kérsz
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. /* Plugin generated by AMXX-Studio */
  3.  
  4. #include <amxmodx>
  5. #include <amxmisc>
  6.  
  7. #define PLUGIN "New Plugin"
  8. #define VERSION "1.0"
  9. #define AUTHOR "qKKKJ"
  10.  
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14.  
  15. register_clcmd("say /lcssms", "motd1")
  16. register_clcmd("say /adminsms", "motd2")
  17. register_clcmd("say /vipsms", "motd3")
  18. }
  19. public motd1(id)
  20. {
  21. show_motd(id, "addons/amxmodx/config/motd1.txt")
  22. }
  23. public motd2(id)
  24. {
  25. show_motd(id, "addons/amxmodx/config/motd2.txt")
  26. }
  27. public motd3(id)
  28. {
  29. show_motd(id, "addons/amxmodx/config/motd3.txt")
  30. }
  31.  

Szerző:  ChaspeR [2013.07.21. 20:55 ]
Hozzászólás témája:  Re: motd ablak több

Aha erre!
De nem így akartam megfogalmazni... XD Ja és meglehetne esetleg menübe oldani? azt elfelejtettem oda írni.
vagyis olyat csinálni pl beirja valaki chatbe : /smsbolt előhoz 1 menüt három választással és ez a három motd ablak lenne benne az még szuper lenne
pl:
Szerver név || SMS BOLT
1. Admin vásárlás
2. VIP vásárlás
3. Lőszercsomag vásárlás

:)

Szerző:  Gatshow [2013.07.21. 21:21 ]
Hozzászólás témája:  Re: motd ablak több

Elméletileg jó!

SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5.  
  6. #define PLUGIN "New Plug-In"
  7. #define VERSION "1.0"
  8. #define AUTHOR "Gatshow"
  9.  
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13.  
  14. register_clcmd("say /smsbolt", "menu")
  15. }
  16.  
  17. public menu(id)
  18. {
  19. new menu = menu_create("SMSBOLT", "Menu_Handle");
  20. menu_additem(menu, "\y Admin vásárlás");
  21. menu_additem(menu, "\y VIP vásárlás");
  22. menu_additem(menu, "\y Lőszercsomag vásárlás");
  23. menu_display(id, menu);
  24. }
  25.  
  26. public Menu_Handle(id, menu, item)
  27. {
  28. if(item == MENU_EXIT)
  29. {
  30. menu_destroy(menu)
  31. return PLUGIN_HANDLED
  32. }
  33.  
  34. menu_display(id, menu)
  35.  
  36. switch(item)
  37. {
  38. case 0:
  39. {
  40. show_motd(id, "addons/amxmodx/config/motd1.txt")
  41. }
  42. case 1:
  43. {
  44. show_motd(id, "addons/amxmodx/config/motd2.txt")
  45. }
  46. case 2:
  47. {
  48. show_motd(id, "addons/amxmodx/config/motd3.txt")
  49. }
  50. }
  51. return PLUGIN_CONTINUE
  52. }
  53.  

Szerző:  ChaspeR [2013.07.22. 08:13 ]
Hozzászólás témája:  Re: motd ablak több

Meglehet oldani ,hogy ez a három parancs is fusson mellette: /lcssms
/adminsms
/vipsms
?

Szerző:  kiki [2013.07.22. 08:22 ]
Hozzászólás témája:  Re: motd ablak több

Nesze:

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "New Plug-In"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Gatshow"
  7.  
  8. public plugin_init() {
  9. register_plugin(PLUGIN, VERSION, AUTHOR)
  10. register_clcmd("say /lcssms", "motd1")
  11. register_clcmd("say /adminsms", "motd2")
  12. register_clcmd("say /vipsms", "motd3")
  13. register_clcmd("say /smsbolt", "menu")
  14. }
  15.  
  16. public menu(id)
  17. {
  18. new menu = menu_create("SMSBOLT", "Menu_Handle");
  19. menu_additem(menu, "\y Admin vásárlás");
  20. menu_additem(menu, "\y VIP vásárlás");
  21. menu_additem(menu, "\y Lőszercsomag vásárlás");
  22. menu_display(id, menu);
  23. }
  24.  
  25. public Menu_Handle(id, menu, item)
  26. {
  27. if(item == MENU_EXIT)
  28. {
  29. menu_destroy(menu)
  30. return PLUGIN_HANDLED
  31. }
  32.  
  33. menu_display(id, menu)
  34.  
  35. switch(item)
  36. {
  37. case 0:
  38. {
  39. motd(id, 1)
  40. }
  41. case 1:
  42. {
  43. motd(id, 2)
  44. }
  45. case 2:
  46. {
  47. motd(id, 3)
  48. }
  49. }
  50. return PLUGIN_CONTINUE
  51. }
  52.  
  53. public motd1(id) motd(id, 1)
  54. public motd2(id) motd(id, 2)
  55. public motd3(id) motd(id, 3)
  56.  
  57. public motd(id, motd)
  58. {
  59. if(motd == 1)
  60. {
  61. show_motd(id, "addons/amxmodx/config/motd1.txt")
  62. }
  63.  
  64. if(motd == 2)
  65. {
  66. show_motd(id, "addons/amxmodx/config/motd2.txt")
  67. }
  68.  
  69. if(motd == 3)
  70. {
  71. show_motd(id, "addons/amxmodx/config/motd3.txt")
  72. }
  73. }

Szerző:  ChaspeR [2013.07.22. 09:30 ]
Hozzászólás témája:  Re: motd ablak több

thanks man!

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/