hlmod.hu
https://hlmod.hu/

Csatlakozo hud-lecsatlakozo hud
https://hlmod.hu/viewtopic.php?f=29&t=18743
Oldal: 1 / 1

Szerző:  Be$t.# [ 2014.12.30. 18:58 ]
Hozzászólás témája:  Csatlakozo hud-lecsatlakozo hud

Halli valakii nem adna egy olyan csatlakozo hudot hogy ki irja amikor csatlakozol,betoppansz és random szin legyen mintha víbrálna. Aki kuldi megy a kéz!

Szerző:  Hydra ツ [ 2014.12.30. 19:00 ]
Hozzászólás témája:  Re: Csatlakozo hud-lecsatlakozo hud

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmod>
  2. #include <csstats>
  3.  
  4. public client_putinserver(id){
  5. new param[34], len
  6. param[0] = id
  7. len = get_user_name(id,param[1],31)
  8. set_task(2.0, "enter_msg", 0, param,len + 2)
  9. return PLUGIN_CONTINUE
  10. }
  11.  
  12. public client_disconnect(id){
  13. new param[34], len
  14. param[0] = id
  15. len = get_user_name(id, param[1], 31)
  16. set_task(2.0, "leave_msg", 0, param, len + 2)
  17. return PLUGIN_CONTINUE
  18. }
  19.  
  20. public enter_msg(param[]) {
  21. new message[192],hostname[64]
  22. get_cvar_string("amx_enter_message", message, 191)
  23. get_cvar_string("hostname", hostname, 63)
  24. replace(message,191, "%hostname%", hostname)
  25. new address[32]
  26. get_user_ip(param[0],address,31,1)
  27. replace(message,191, "%IP%", address)
  28. if (cvar_exists("csstats_reset")){
  29. new data[8], rankpos[8], pos
  30. pos = get_user_stats(param[0],data,data)
  31. numtostr(pos,rankpos,7)
  32. replace(message, 191, "%rankpos%", rankpos)
  33. }
  34. replace(message, 191, "%name%", param[1])
  35. while(replace(message, 191, "\n", "^n")){}
  36. set_hudmessage(random(255),random(255),random(255), 0.10, 0.55, 1, 6.0, 6.0, 0.5, 0.15, 3)
  37. show_hudmessage(0, message)
  38. return PLUGIN_CONTINUE
  39. }
  40.  
  41. public leave_msg(param[]) {
  42. new message[192],hostname[64]
  43. get_cvar_string("amx_leave_message", message, 191)
  44. get_cvar_string("hostname", hostname, 63)
  45. replace(message, 191, "%hostname%", hostname)
  46. replace(message, 191, "%name%", param[1])
  47. while(replace(message, 191, "\n", "^n")){}
  48. set_hudmessage(random(255),random(255),random(255), 0.10, 0.55, 1, 6.0, 6.0, 0.5, 0.15, 3)
  49. show_hudmessage(0, message)
  50. return PLUGIN_CONTINUE
  51. }
  52.  
  53. public plugin_init() {
  54. register_plugin("Enter-Leave Message","0.2","[Kindzhon] China")
  55. register_cvar("amx_enter_message", "%name% belepett szerverre!\nJo jatekot kivanunk!!\n(Rankja %rankpos%,IP:%IP%)")
  56. register_cvar("amx_leave_message", "Szia %name% !\nRemeljuk meg vissza jossz!.")
  57. return PLUGIN_CONTINUE
  58. }


A szöveget írd át.

Szerző:  Be$t.# [ 2014.12.30. 19:02 ]
Hozzászólás témája:  Re: Csatlakozo hud-lecsatlakozo hud

Thx :)

Szerző:  Hydra ツ [ 2014.12.30. 19:03 ]
Hozzászólás témája:  Re: Csatlakozo hud-lecsatlakozo hud

Szívesen ha nem megfelelő akkor keresek/csinálok egy újat :)

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