hlmod.hu
https://hlmod.hu/

Info
https://hlmod.hu/viewtopic.php?f=29&t=14131
Oldal: 1 / 1

Szerző:  gyurc1111 [ 2014.01.31. 19:56 ]
Hozzászólás témája:  Info

Bal oldalra kellene nekem egy pár info a szerverről Pl:ct-t Fragek,Kör..stb

Szerző:  alfanero [ 2014.01.31. 19:57 ]
Hozzászólás témája:  Re: Info

Volt egy ilyen topicom nekem.
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "HUD Info"
  6. #define VERSION "1.0"
  7. #define AUTHOR "N/A"
  8.  
  9. #define MAXROUNDS 40
  10.  
  11. new Rounds
  12.  
  13. new iCTKills
  14. new iTTKills
  15.  
  16. public plugin_init() {
  17. register_plugin(PLUGIN, VERSION, AUTHOR)
  18. register_event( "DeathMsg", "DeathEvent", "a" );
  19. register_event("TextMsg","ResetAll","a","2&#Game_C","2&#Game_w")
  20. register_logevent("NewRounds", 2, "0=World triggered", "1=Round_Start")
  21. set_task(1.0,"HUDInfo" , _ , _ , _ , "b")
  22. }
  23.  
  24. public ResetAll() {
  25. Rounds = 0
  26. iCTKills = 0
  27. iTTKills = 0
  28. }
  29.  
  30. public DeathEvent(){
  31. new Killer = read_data( 1 );
  32. new CsTeams:Team
  33. Team = cs_get_user_team( Killer );
  34. if (Team == CS_TEAM_T)
  35. {
  36. iTTKills++
  37. }
  38. if (Team == CS_TEAM_CT)
  39. {
  40. iCTKills++
  41. }
  42. }
  43.  
  44. public NewRounds(){
  45. Rounds++
  46. }
  47.  
  48. public HUDInfo(){
  49. new Time[9]
  50. get_time("%H:%M",Time,8)
  51.  
  52. new CurrentPlayers = get_playersnum();
  53. new MaxPlayers = get_maxplayers();
  54.  
  55. set_hudmessage(255, 255, 255, 0.0, 0.12, 0, 6.0, 1.0)
  56. show_hudmessage(0, "Idő: %s^nFrags of T: %d^nFrags of CT: %d^nKör: %d/%d^nJátékosok: %d/%d", Time, iTTKills, iCTKills, Rounds, MAXROUNDS, CurrentPlayers, MaxPlayers)
  57.  
  58. }
  59.  
  60. stock print_color(const id, const input[], any:...)
  61. {
  62. new count = 1, players[32]
  63. static msg[191]
  64. vformat(msg, 190, input, 3)
  65.  
  66. replace_all(msg, 190, "!g", "^4")
  67. replace_all(msg, 190, "!y", "^1")
  68. replace_all(msg, 190, "!t", "^3")
  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. replace_all(msg, 190, "Ö", "Ă–")
  83. replace_all(msg, 190, "Ő", "Ő")
  84. replace_all(msg, 190, "Ú", "Ăš")
  85. replace_all(msg, 190, "Ü", "Ăś")
  86. replace_all(msg, 190, "Ű", "Ĺ°")
  87.  
  88. if (id) players[0] = id; else get_players(players, count, "ch")
  89. {
  90. for (new i = 0; i < count; i++)
  91. {
  92. if (is_user_connected(players[i]))
  93. {
  94. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  95. write_byte(players[i])
  96. write_string(msg)
  97. message_end()
  98. }
  99. }
  100. }
  101. return PLUGIN_HANDLED
  102. }

Szerző:  lis789 [ 2014.01.31. 19:59 ]
Hozzászólás témája:  Re: Info

Szerver Informáciok

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