hlmod.hu
https://hlmod.hu/

Death & Fregs
https://hlmod.hu/viewtopic.php?f=9&t=5964
Oldal: 1 / 1

Szerző:  pixxa112 [2012.09.14. 14:25 ]
Hozzászólás témája:  Death & Fregs

Hali.

Ebben mi a hiba?

Lefutni le fút hiba nélkül, de a szerveren már nem mutatja :S

SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3.  
  4.  
  5. #include <amxmodx>
  6.  
  7.  
  8.  
  9. #define PLUGIN "Death & Fregs"
  10.  
  11. #define VERSION "1.0"
  12.  
  13. #define AUTHOR "Valaki"
  14.  
  15.  
  16. new death = 0
  17.  
  18. new frags = 0
  19.  
  20.  
  21.  
  22. public plugin_init() {
  23.  
  24. register_plugin(PLUGIN, VERSION, AUTHOR)
  25.  
  26. register_event("DeathMsg", "halal", "a");
  27.  
  28. register_logevent("round_first", 2, "0=World triggered", "1&Restart_Round_")
  29.  
  30. register_logevent("round_first", 2, "0=World triggered", "1=Game_Commencing")
  31.  
  32. set_task(5.0, "hud")
  33.  
  34. }
  35.  
  36. public round_first()
  37.  
  38. death = 0, frags = 0
  39.  
  40. public halal()
  41.  
  42. {
  43.  
  44. static killer
  45.  
  46. killer = read_data(1);
  47.  
  48. if(get_user_team(killer) == 2)
  49.  
  50. death++
  51.  
  52. if(get_user_team(killer) == 1)
  53.  
  54. frags++
  55.  
  56. return PLUGIN_CONTINUE
  57.  
  58. }
  59.  
  60. public hud() {
  61.  
  62. set_hudmessage(51, 255, 0, 0.7, 0.4, 0, 6.0, 12.0)
  63.  
  64. show_hudmessage(0,"[S][M] DR] INFO:^n [Death:] %d^n[Fregs:] %d",death, frags)
  65. }

Szerző:  IrOn [2012.09.14. 17:16 ]
Hozzászólás témája:  Re: Death & Fregs

Kód:
set_task(5.0, "hud")

csak 1x fut le a plugin indulásakor

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