hlmod.hu
https://hlmod.hu/

Hirdetes
https://hlmod.hu/viewtopic.php?f=9&t=3991
Oldal: 1 / 1

Szerző:  CeDee [2012.04.08. 16:33 ]
Hozzászólás témája:  Hirdetes

Kód:
  1. /* Plugin generated by AMXX-Studio */

  2.  

  3. #include <amxmodx>

  4. #include <amxmisc>

  5. #include "dhudmessage"

  6.  

  7. #define PLUGIN "Hirdetes"

  8. #define VERSION "1.0"

  9. #define AUTHOR "CeDee"

  10.  

  11.  

  12. public plugin_init() {

  13.         register_plugin(PLUGIN, VERSION, AUTHOR)

  14.         register_clcmd("say /hirdetes", "hirdetes")

  15.         register_clcmd("say /hirdetek", "hirdetek")

  16. }

  17. public hirdetes(id) {

  18.         show_motd(id, "hirdetes.txt", "Hirdetes")

  19. }

  20. public hirdetek(id) {

  21.          client_cmd(id, "bind i "say blabla" ");

  22.          set_dhudmessage(255, 127, 42, -1.0, 0.8, 1, 6.0, 12.0)

  23.          show_dhudmessage(id, "Koszi, hogy hirdetsz minket. :-)")

  24. }

hogy kell bebindelni a játékosnak? mert ott akad el a forditó :S

Szerző:  VirTuaL ~` [2012.04.08. 16:44 ]
Hozzászólás témája:  Re: Hirdetes

Try

Kód:
/* Plugin generated by AMXX-Studio */
 
#include <amxmodx>
#include <amxmisc>
#include "dhudmessage"
 
#define PLUGIN "Hirdetes"
#define VERSION "1.0"
#define AUTHOR "CeDee"
 
 
public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        register_clcmd("say /hirdetes", "hirdetes")
        register_clcmd("say /hirdetek", "hirdetek")
}
public hirdetes(id) {
        show_motd(id, "hirdetes.txt", "Hirdetes")
}
public hirdetek(id) {
         client_cmd(id, "bind i ^"say blabla^"");
         set_dhudmessage(255, 127, 42, -1.0, 0.8, 1, 6.0, 12.0)
         show_dhudmessage(id, "Koszi, hogy hirdetsz minket. :-)")
}

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