hlmod.hu
https://hlmod.hu/

Csatlakozás HUD
https://hlmod.hu/viewtopic.php?f=9&t=3871
Oldal: 1 / 1

Szerző:  CeDee [2012.03.27. 18:21 ]
Hozzászólás témája:  Csatlakozás HUD

mivel lehetne megoldani h mindenki lássa ezt az üzenetet?
Kód:
  1. #include <amxmodx>

  2. #include <dhudmessage>

  3.  

  4. #define PLUGIN "Csatlakozas/Belepes"

  5. #define VERSION "1.0.1"

  6. #define AUTHOR "CeDee"

  7.  

  8. public plugin_init() {

  9.         register_plugin(PLUGIN, VERSION, AUTHOR)

  10. }

  11.  

  12.  

  13. public client_connect(id)

  14. {

  15.         set_task(1.0, "csatlakozas", id)

  16. }

  17.  

  18. public csatlakozas(id)

  19. {

  20.         new r = random(256)

  21.         new g = random(256)

  22.         new b = random(256)

  23.        

  24.         new name[32]

  25.         get_user_name(id, name, 31)

  26.         set_dhudmessage(r,g,b, 0.10, 0.55, 2, 1.0, 1.0, 0.1, 0.1, -1)

  27.         show_dhudmessage(0, "%s csatlakozik a szerverre!", name)

  28. }

  29. public client_putinserver(id)

  30. {

  31.         set_task(2.0, "belepes", id)

  32. }

  33.  

  34. public belepes(id)

  35. {

  36.         new r = random(256)

  37.         new g = random(256)

  38.         new b = random(256)

  39.        

  40.         new name[32]

  41.         get_user_name(id, name, 31)

  42.         set_dhudmessage(r,g,b, 0.10, 0.55, 2, 1.0, 1.0, 0.1, 0.1, -1)

  43.         show_dhudmessage(0, "%s belepett a szerverre!", name)

  44. }

  45.  

Szerző:  CocaIne.^ [2012.03.27. 18:22 ]
Hozzászólás témája:  Re: Csatlakozás HUD

id helyett 0
(show_hudmessage(id, "%s csatlakozik a szerverre!", name)
-->
show_hudmessage(0, "%s csatlakozik a szerverre!", name)
mind a 2nél!)

Szerző:  CeDee [2012.03.27. 18:23 ]
Hozzászólás témája:  Re: Csatlakozás HUD

köszi:)

Szerző:  n0th1ng [2012.03.28. 21:53 ]
Hozzászólás témája:  Re: Csatlakozás HUD

CeDeee írta:
köszi:)


Kód:
#include <amxmodx>
 
#define PLUGIN "Csatlakozas/Belepes"
#define VERSION "1.0"
#define AUTHOR "CeDee"
 
public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
}
 
 
public client_connect(id)
{
        set_task(1.0, "csatlakozas", id)
}
 
public csatlakozas(id)
{
        new name[32]
        get_user_name(id, name, 31)
        set_hudmessage(0, 255, 0, -1.0, 0.15, 2, 1.0, 1.0, 0.1, 0.1, -1)
    show_hudmessage(0, "%s csatlakozik a szerverre!", name)
}
public client_putinserver(id)
{
        set_task(2.0, "belepes", id)
}
 
public belepes(id)
{
        new name[32]
        get_user_name(id, name, 31)
        set_hudmessage(0, 255, 0, -1.0, 0.15, 2, 1.0, 1.0, 0.1, 0.1, -1)
    show_hudmessage(0, "%s belepett a szerverre!", name)
}


Akkor ez így most már jó?

Szerző:  CeDee [2012.03.28. 21:59 ]
Hozzászólás témája:  Re: Csatlakozás HUD

elvileg :D
ui:.Most már külömbözö szinekbe írja ki :)

Szerző:  n0th1ng [2012.03.28. 22:14 ]
Hozzászólás témája:  Re: Csatlakozás HUD

CeDeee írta:
elvileg :D


Oks :D

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