hlmod.hu
https://hlmod.hu/

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

Szerző:  pixxa112 [ 2013.05.13. 21:01 ]
Hozzászólás témája:  Csatlakozás

Hali.

Valaki linkelne egy olyan plugin amit csatlakozáskor ezt írja hudban:

Csatlakozáskor:
xy belépet a szerverre!
helyezése: xx

Lecsatlakozáskor:
xy lelépet
Nézz vissza később

Szerző:  crazy` [ 2013.05.13. 21:12 ]
Hozzászólás témája:  Re: Csatlakozás

teszteld:

SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <csstats>
  5. #include <hamsandwich>
  6. #include <amxmisc>
  7.  
  8. #define PLUGIN "Csatlakozo HUD"
  9. #define AUTHOR "crazy"
  10. #define VERSION "1.0"
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. }
  16. public client_authorized(id)
  17. {
  18. set_task(8.0,"csatlakozott",id)
  19. }
  20. public client_disconnect(id)
  21. {
  22. set_task(8.0, "elment", id)
  23. }
  24. public csatlakozott(id)
  25. {
  26. new gname[33]
  27. new stats[8],bodyhits[8],irank
  28. irank = get_user_stats(id,stats,bodyhits)
  29. new mrank = get_statsnum()
  30. get_user_name(id, gname, 32)
  31.  
  32. new r = random(256)
  33. new g = random(256)
  34. new b = random(256)
  35.  
  36. {
  37. set_hudmessage(r, g, b, 0.02, 0.3, 2, 0.1, 6.0, 0.08, 0.5, 10)
  38. show_hudmessage(0, " %s Belepett a Szerverre!^nHelyezese: %d/%d",gname,irank,mrank)
  39.  
  40. }
  41.  
  42. }
  43. public elment(id)
  44. {
  45. new gname[33]
  46. get_user_name(id, gname, 32)
  47.  
  48. new r = random(256)
  49. new g = random(256)
  50. new b = random(256)
  51.  
  52. {
  53. set_hudmessage(r, g, b, 0.02, 0.3, 2, 0.1, 6.0, 0.08, 0.5, 10)
  54. show_hudmessage(0, " %s lelepett!^nNezz vissza kesobb!",gname)
  55.  
  56. }
  57.  
  58. }
  59.  

Szerző:  pixxa112 [ 2013.05.13. 21:26 ]
Hozzászólás témája:  Re: Csatlakozás

crazy` írta:
teszteld:

SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <csstats>
  5. #include <hamsandwich>
  6. #include <amxmisc>
  7.  
  8. #define PLUGIN "Csatlakozo HUD"
  9. #define AUTHOR "crazy"
  10. #define VERSION "1.0"
  11.  
  12. public plugin_init()
  13. {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. }
  16. public client_authorized(id)
  17. {
  18. set_task(8.0,"csatlakozott",id)
  19. }
  20. public client_disconnect(id)
  21. {
  22. set_task(8.0, "elment", id)
  23. }
  24. public csatlakozott(id)
  25. {
  26. new gname[33]
  27. new stats[8],bodyhits[8],irank
  28. irank = get_user_stats(id,stats,bodyhits)
  29. new mrank = get_statsnum()
  30. get_user_name(id, gname, 32)
  31.  
  32. new r = random(256)
  33. new g = random(256)
  34. new b = random(256)
  35.  
  36. {
  37. set_hudmessage(r, g, b, 0.02, 0.3, 2, 0.1, 6.0, 0.08, 0.5, 10)
  38. show_hudmessage(0, " %s Belepett a Szerverre!^nHelyezese: %d/%d",gname,irank,mrank)
  39.  
  40. }
  41.  
  42. }
  43. public elment(id)
  44. {
  45. new gname[33]
  46. get_user_name(id, gname, 32)
  47.  
  48. new r = random(256)
  49. new g = random(256)
  50. new b = random(256)
  51.  
  52. {
  53. set_hudmessage(r, g, b, 0.02, 0.3, 2, 0.1, 6.0, 0.08, 0.5, 10)
  54. show_hudmessage(0, " %s lelepett!^nNezz vissza kesobb!",gname)
  55.  
  56. }
  57.  
  58. }
  59.  


Köszi :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/