hlmod.hu
https://hlmod.hu/

Motd és chat szöveg nem működik
https://hlmod.hu/viewtopic.php?f=9&t=28746
Oldal: 1 / 1

Szerző:  HellEnergY [ 2018.02.10. 20:38 ]
Hozzászólás témája:  Motd és chat szöveg nem működik

Sziasztok!

Az lenne a problémánk hogy mikor a szerveren beírjuk,
pl.: /ts3 vagy /szabaly akkor nem dob ki semmit, nem működik a parancs.
Valaki tudna segíteni miért nem megy ?

Válaszokat előre is köszi! :) :D :xicon_e_biggrin:



  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <colorchat>
  4. #include <fun>
  5.  
  6. #define PLUGIN "New Plug-In"
  7. #define VERSION "1.0"
  8. #define AUTHOR "jjj"
  9.  
  10. new const Prefix[] = "szeerooo"
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. register_clcmd("say /ts3", "ts")
  15. register_clcmd("say_team /ts3", "ts")
  16. register_clcmd("say /szabaly", "szabaly")
  17. register_clcmd("say_team /szabaly", "szabaly")
  18.  
  19. }
  20. public ts(id)
  21. {
  22. ColorChat(id, GREEN, "[%s] ^1TS3 IP-je:^3 xy", Prefix)
  23. return PLUGIN_HANDLED
  24. }
  25. public szabaly(id)
  26. {
  27. show_motd(id, "cstrike/addons/amxmodx/configs/motd/szabalyok.txt")
  28. return PLUGIN_HANDLED
  29. }

Szerző:  adriansr14 [ 2018.02.10. 20:49 ]
Hozzászólás témája:  Re: Nem működik a parancs

Szia!

Probáld így:

  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <colorchat>
  4. #include <fun>
  5.  
  6. #define PLUGIN "New Plug-In"
  7. #define VERSION "1.0"
  8. #define AUTHOR "jjj"
  9.  
  10. new const Prefix[] = "szeerooo"
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. register_clcmd("say /ts3", "ts")
  15. register_clcmd("say_team /ts3", "ts")
  16. register_clcmd("say /szabaly", "szabaly")
  17. register_clcmd("say_team /szabaly", "szabaly")
  18.  
  19. }
  20. public ts(id)
  21. {
  22. ColorChat(id, GREEN, "[%s] ^1TS3 IP-je:^3 xy", Prefix)
  23. }
  24. public szabaly(id)
  25. {
  26. show_motd(id, "cstrike/addons/amxmodx/configs/motd/szabalyok.txt")
  27. }

Szerző:  HellEnergY [ 2018.02.10. 21:06 ]
Hozzászólás témája:  Re: Nem működik a parancs

adriansr14 írta:
Szia!

Probáld így:

  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <colorchat>
  4. #include <fun>
  5.  
  6. #define PLUGIN "New Plug-In"
  7. #define VERSION "1.0"
  8. #define AUTHOR "jjj"
  9.  
  10. new const Prefix[] = "szeerooo"
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. register_clcmd("say /ts3", "ts")
  15. register_clcmd("say_team /ts3", "ts")
  16. register_clcmd("say /szabaly", "szabaly")
  17. register_clcmd("say_team /szabaly", "szabaly")
  18.  
  19. }
  20. public ts(id)
  21. {
  22. ColorChat(id, GREEN, "[%s] ^1TS3 IP-je:^3 xy", Prefix)
  23. }
  24. public szabaly(id)
  25. {
  26. show_motd(id, "cstrike/addons/amxmodx/configs/motd/szabalyok.txt")
  27. }





Nem ment így sem :(

Szerző:  fiatalveteran [ 2018.02.10. 21:45 ]
Hozzászólás témája:  Re: Nem működik a parancs

teszteld légyszives.

  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <colorchat>
  4. #include <fun>
  5.  
  6. #define PLUGIN "New Plug-In"
  7. #define VERSION "1.0"
  8. #define AUTHOR "jjj"
  9.  
  10. new const Prefix[] = "szeerooo"
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. register_clcmd("say /ts3", "ts")
  15. register_clcmd("say_team /ts3", "ts")
  16. register_clcmd("say /szabaly", "szabaly")
  17. register_clcmd("say_team /szabaly", "szabaly")
  18.  
  19. }
  20. public ts(id)
  21. {
  22. ColorChat(id, GREEN, "[%s] ^1TS3 IP-je:^3 xy", Prefix)
  23. return PLUGIN_CONTINUE
  24. }
  25. public szabaly(id)
  26. {
  27. show_motd(id, "cstrike/addons/amxmodx/configs/motd/szabalyok.txt")
  28. return PLUGIN_CONTINUE
  29. }
  30. }

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