hlmod.hu
https://hlmod.hu/

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

Szerző:  pixxa112 [2013.01.18. 18:50 ]
Hozzászólás témája:  Death & Frags

Hali.

Ezt valaki ki bírná javítani??
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 & Frags"
  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. show_hudmessage(0,"[HUN] THE ONLY DUST2 INFO:^n[Death:] %d^n[Frags:] %d",death, frags)
  64. }
  65.  

Szerző:  small [2013.01.18. 18:55 ]
Hozzászólás témája:  Re: Death & Frags

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 & Frags"
  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(4.9, "hud", 0, "", 0, "b", 0);
  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, 5.0)
  63. show_hudmessage(0,"[HUN] THE ONLY DUST2 INFO:^n[Death:] %d^n[Frags:] %d",death, frags)
  64. }
  65.  

Szerző:  pixxa112 [2013.01.18. 19:09 ]
Hozzászólás témája:  Re: Death & Frags

small írta:
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 & Frags"
  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(4.9, "hud", 0, "", 0, "a", 0);
  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, 5.0)
  63. show_hudmessage(0,"[HUN] THE ONLY DUST2 INFO:^n[Death:] %d^n[Frags:] %d",death, frags)
  64. }
  65.  


Nem működik. :(

Szerző:  small [2013.01.18. 19:14 ]
Hozzászólás témája:  Re: Death & Frags

Nincs is hud v a számolás rossz?

Szerző:  pixxa112 [2013.01.18. 21:33 ]
Hozzászólás témája:  Re: Death & Frags

small írta:
Nincs is hud v a számolás rossz?

Nem mutat semmit.. :(

Szerző:  small [2013.01.18. 22:33 ]
Hozzászólás témája:  Re: Death & Frags

Javítottam..
Tesztelve Működik...

Szerző:  pixxa112 [2013.01.18. 23:18 ]
Hozzászólás témája:  Re: Death & Frags

small írta:
Javítottam..
Tesztelve Működik...


Köszi működik :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/