hlmod.hu
https://hlmod.hu/

Hud
https://hlmod.hu/viewtopic.php?f=9&t=11671
Oldal: 1 / 1

Szerző:  exTrem.cfg [2013.11.07. 23:12 ]
Hozzászólás témája:  Hud

Sziasztok! Nemtudom mit hibáztam de azt akarnám ebben a pluginban hogy csak is elők lássák ezt a hudot.
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. #define PLUGIN "Frags CT of TE"
  5. #define VERSION "1.0"
  6. #define AUTHOR "pixxa112"
  7.  
  8. new ctfrags = 0
  9. new tfrags = 0
  10.  
  11. public plugin_init() {
  12.  
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. register_event("DeathMsg", "halal", "a");
  15. register_logevent("round_first", 2, "0=World triggered", "1&Restart_Round_")
  16. register_logevent("round_first", 2, "0=World triggered", "1=Game_Commencing")
  17.  
  18. set_task(5.0, "hud")
  19. }
  20.  
  21. public round_first()
  22.  
  23. ctfrags = 0, tfrags = 0
  24.  
  25. public halal()
  26. {
  27. static killer
  28. killer = read_data(1);
  29. if(get_user_team(killer) == 2)
  30. ctfrags++
  31. if(get_user_team(killer) == 1)
  32. tfrags++
  33.  
  34. return PLUGIN_CONTINUE
  35.  
  36. }
  37.  
  38. public hud()
  39. {
  40. nPlayer_S = nPlayers[i]
  41. if(is_user_alive(nPlayer_S))
  42.  
  43. set_hudmessage(random(255),random(255), random(255), 0.57, 0.01, 2, 0.6, 5.0)
  44. show_hudmessage(0,"Üdvözöllek A Szerveren!^nKellemes Időtöltést^nWebOldal: www.remixmultigaming.weebly.com^nhttps://www.facebook.com/veteransd2")
  45.  
  46. set_task(5.0, "hud")
  47. }

:help:

Szerző:  ultraibolya [2013.11.07. 23:17 ]
Hozzászólás témája:  Re: Hud

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. #define PLUGIN "Frags CT of TE"
  5. #define VERSION "1.0"
  6. #define AUTHOR "pixxa112"
  7.  
  8. new ctfrags = 0
  9. new tfrags = 0
  10.  
  11. public plugin_init() {
  12.  
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. register_event("DeathMsg", "halal", "a");
  15. register_logevent("round_first", 2, "0=World triggered", "1&Restart_Round_")
  16. register_logevent("round_first", 2, "0=World triggered", "1=Game_Commencing")
  17.  
  18. set_task(5.0, "hud")
  19. }
  20.  
  21. public round_first()
  22.  
  23. ctfrags = 0, tfrags = 0
  24.  
  25. public halal()
  26. {
  27. static killer
  28. killer = read_data(1);
  29. if(get_user_team(killer) == 2)
  30. ctfrags++
  31. if(get_user_team(killer) == 1)
  32. tfrags++
  33.  
  34. return PLUGIN_CONTINUE
  35.  
  36. }
  37.  
  38. public hud(id)
  39. {
  40. if(is_user_alive(id))
  41. {
  42. set_hudmessage(random(255),random(255), random(255), 0.57, 0.01, 2, 0.6, 5.0)
  43. show_hudmessage(id,"Üdvözöllek A Szerveren!^nKellemes Időtöltést^nWebOldal: www.remixmultigaming.weebly.com^nhttps://www.facebook.com/veteransd2")
  44. }
  45. set_task(5.0, "hud")
  46. }

Szerző:  exTrem.cfg [2013.11.08. 10:17 ]
Hozzászólás témája:  Re: Hud

Nos, leforditani leforditja de nem adja ki a hudot a játékban. :wizard:

Szerző:  stupid [2013.11.08. 13:40 ]
Hozzászólás témája:  Re: Hud

exTrem.cfg írta:
Nos, leforditani leforditja de nem adja ki a hudot a játékban. :wizard:

Nem kellett volna a 0-át id re.

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. #define PLUGIN "Frags CT of TE"
  5. #define VERSION "1.0"
  6. #define AUTHOR "pixxa112"
  7.  
  8. new ctfrags = 0
  9. new tfrags = 0
  10.  
  11. public plugin_init() {
  12.  
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. register_event("DeathMsg", "halal", "a");
  15. register_logevent("round_first", 2, "0=World triggered", "1&Restart_Round_")
  16. register_logevent("round_first", 2, "0=World triggered", "1=Game_Commencing")
  17.  
  18. set_task(5.0, "hud")
  19. }
  20.  
  21. public round_first()
  22.  
  23. ctfrags = 0, tfrags = 0
  24.  
  25. public halal()
  26. {
  27. static killer
  28. killer = read_data(1);
  29. if(get_user_team(killer) == 2)
  30. ctfrags++
  31. if(get_user_team(killer) == 1)
  32. tfrags++
  33.  
  34. return PLUGIN_CONTINUE
  35.  
  36. }
  37.  
  38. public hud(id)
  39. {
  40. if(is_user_alive(id))
  41. {
  42. set_hudmessage(random(255),random(255), random(255), 0.57, 0.01, 2, 0.6, 5.0)
  43. show_hudmessage(0,"Üdvözöllek A Szerveren!^nKellemes Időtöltést^nWebOldal: http://www.remixmultigaming.weebly.com^nhttps://www.facebook.com/veteransd2")
  44. }
  45. set_task(5.0, "hud")
  46. }

Szerző:  exTrem.cfg [2013.11.08. 21:25 ]
Hozzászólás témája:  Re: Hud

stupid. Hiába 0 akkor sem jeleniti meg egyáltalán a hudot. :hi: :bomb:

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