hlmod.hu
https://hlmod.hu/

/admin
https://hlmod.hu/viewtopic.php?f=29&t=14244
Oldal: 1 / 1

Szerző:  bencike [ 2014.02.06. 10:47 ]
Hozzászólás témája:  /admin

hALI!

Valaki tudna csinálni egy olyat, hogy a /admin beírja valaki akkor kiad egy motd amit én tudok szerkeszteni?

Szerző:  Applee [ 2014.02.06. 10:51 ]
Hozzászólás témája:  Re: /admin

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 "author"
  9.  
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. register_clcmd("say /admin", "asd")//// /info helyére írd ami kell.
  14. }
  15. public asd(id)
  16. {
  17. show_motd(id, "addons/amxmodx/configs/asd.txt", "INFO") /// át tudod itt írni elérhetőségét is.
  18. }


Az asd.txt-t rakd a configs mappába és írd bele amit szeretnél.

Szerző:  lis789 [ 2014.02.06. 10:53 ]
Hozzászólás témája:  Re: /admin

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 "procell"
  10.  
  11. // Add your code here...
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15.  
  16. register_clcmd("say /admin", "motd1")
  17. register_clcmd("say_team /admin", "motd1")
  18. }
  19. public motd1(id)
  20. {
  21. show_motd(id, "addons/amxmodx/config/motd1.txt")
  22. }

Szerző:  Applee [ 2014.02.06. 10:57 ]
Hozzászólás témája:  Re: /admin

lis789 írta:
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 "procell"
  10.  
  11. // Add your code here...
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15.  
  16. register_clcmd("say /admin", "motd1")
  17. register_clcmd("say_team /admin", "motd1")
  18. }
  19. public motd1(id)
  20. {
  21. show_motd(id, "addons/amxmodx/config/motd1.txt")
  22. }


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 "procell"
  10.  
  11. // Add your code here...
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15.  
  16. register_clcmd("say /admin", "motd1")
  17. register_clcmd("say_team /admin", "motd1")
  18. }
  19. public motd1(id)
  20. {
  21. show_motd(id, "addons/amxmodx/configs/motd1.txt")
  22. }


Lehagytál egy betűt:D
"addons/amxmodx/config/motd1.txt" helyett "addons/amxmodx/configs/motd1.txt"

Szerző:  lis789 [ 2014.02.06. 10:59 ]
Hozzászólás témája:  Re: /admin

Igaz! Köszi :)

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