hlmod.hu
https://hlmod.hu/

Ct T győzelmek!
https://hlmod.hu/viewtopic.php?f=9&t=18385
Oldal: 1 / 1

Szerző:  Somterno [ 2014.12.06. 22:00 ]
Hozzászólás témája:  Ct T győzelmek!

Sziasztok. Ezt a plugint meg e lehetne Úgy ,hogy CT T
győzelmek győzelmek
Ugyan úgy mint ahogy ott van!

Kép!
Kép

Szerző:  Beckx [ 2014.12.06. 22:06 ]
Hozzászólás témája:  Re: Ct T győzelmek!

Tessék!

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4. #include <dhudmessage>
  5.  
  6. #define PLUGIN "HUD Info"
  7. #define VERSION "1.0"
  8. #define AUTHOR "N/A"
  9.  
  10. #define MAXROUNDS 40
  11.  
  12. new Rounds
  13.  
  14. new iCTKills
  15. new iTTKills
  16.  
  17. public plugin_init() {
  18. register_plugin(PLUGIN, VERSION, AUTHOR)
  19. register_event( "DeathMsg", "DeathEvent", "a" );
  20. register_event("TextMsg","ResetAll","a","2&#Game_C","2&#Game_w")
  21. register_logevent("NewRounds", 2, "0=World triggered", "1=Round_Start")
  22. set_task(1.0,"HUDInfo" , _ , _ , _ , "b")
  23. }
  24.  
  25. public ResetAll() {
  26. Rounds = 0
  27. iCTKills = 0
  28. iTTKills = 0
  29. }
  30.  
  31. public DeathEvent(){
  32. new Killer = read_data( 1 );
  33. new CsTeams:Team
  34. Team = cs_get_user_team( Killer );
  35. if (Team == CS_TEAM_T)
  36. {
  37. iTTKills++
  38. }
  39. if (Team == CS_TEAM_CT)
  40. {
  41. iCTKills++
  42. }
  43. }
  44.  
  45. public NewRounds(){
  46. Rounds++
  47. }
  48.  
  49. public HUDInfo(){
  50.  
  51. set_hudmessage(255, 0, 0, -1.0, 0.0, 0, 6.0, 12.0)
  52. show_hudmessage(0, "[T Győzelem] - [CT Győzelem] ^n[%d] -- [%d]", iTTKills, iCTKills)
  53.  
  54. }
  55. stock print_color(const id, const input[], any:...)
  56. {
  57. new count = 1, players[32]
  58. static msg[191]
  59. vformat(msg, 190, input, 3)
  60.  
  61. replace_all(msg, 190, "!g", "^4")
  62. replace_all(msg, 190, "!y", "^1")
  63. replace_all(msg, 190, "!t", "^3")
  64. replace_all(msg, 190, "á", "á")
  65. replace_all(msg, 190, "é", "Ă©")
  66. replace_all(msg, 190, "í", "Ă­")
  67. replace_all(msg, 190, "ó", "Ăł")
  68. replace_all(msg, 190, "ö", "ö")
  69. replace_all(msg, 190, "ő", "Ĺ‘")
  70. replace_all(msg, 190, "ú", "Ăş")
  71. replace_all(msg, 190, "ü", "ĂĽ")
  72. replace_all(msg, 190, "ű", "ű")
  73. replace_all(msg, 190, "Á", "Á")
  74. replace_all(msg, 190, "É", "É")
  75. replace_all(msg, 190, "Í", "ĂŤ")
  76. replace_all(msg, 190, "Ó", "Ă“")
  77. replace_all(msg, 190, "Ö", "Ă–")
  78. replace_all(msg, 190, "Ő", "Ő")
  79. replace_all(msg, 190, "Ú", "Ăš")
  80. replace_all(msg, 190, "Ü", "Ăś")
  81. replace_all(msg, 190, "Ű", "Ĺ°")
  82.  
  83. if (id) players[0] = id; else get_players(players, count, "ch")
  84. {
  85. for (new i = 0; i < count; i++)
  86. {
  87. if (is_user_connected(players[i]))
  88. {
  89. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  90. write_byte(players[i])
  91. write_string(msg)
  92. message_end()

Szerző:  Somterno [ 2014.12.06. 23:12 ]
Hozzászólás témája:  Re: Ct T győzelmek!

Az a gond ,hogy a t és a ct Killeket számolja magyarul
ölsz egy T akkor T győzelem alá megy egy
Így:
T
1

Ölnek 2 ct-t akkor
Így:
Ct
2

Nekem körönként kellene számolja!

Szerző:  Hydra ツ [ 2015.01.02. 11:41 ]
Hozzászólás témája:  Re: Ct T győzelmek!

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "Informacio"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Hydra"
  7.  
  8. new TE_win = 0
  9. new CT_win = 0
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. register_logevent("Start", 2, "0=World triggered", "1&Restart_Round_");
  14. register_event("SendAudio", "Tewin", "a", "2=%!MRAD_terwin")
  15. register_event("SendAudio", "Ctwin", "a", "2=%!MRAD_ctwin")
  16. set_task(5.0, "Ct_of_Te_win")
  17. }
  18. public Start() {
  19. TE_win = 0, CT_win = 0
  20. }
  21.  
  22. public Tewin()
  23. {
  24. TE_win++
  25. }
  26. public Ctwin()
  27. {
  28. CT_win++
  29. }
  30. public Ct_of_Te_win()
  31. {
  32. set_hudmessage(255, 170, 0, 0.38, 0.01, 0, 6.0, 12.0)
  33. show_hudmessage(id, "[Ct] - [Te]^n[%d]--[%d]", TE_win, CT_win )
  34. set_task(5.0, "Ct_of_Te_win")
  35. }
  36.  

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