hlmod.hu

Magyar Half-Life Mód közösség!
Pontos idő: 2025.06.15. 22:39



Jelenlévő felhasználók

Jelenleg 387 felhasználó van jelen :: 1 regisztrált, 0 rejtett és 386 vendég

A legtöbb felhasználó (2761 fő) 2025.01.09. 20:06-kor tartózkodott itt.

Regisztrált felhasználók: Google [Bot]az elmúlt 5 percben aktív felhasználók alapján

Utoljára aktív
Ahhoz hogy lásd ki volt utoljára aktív, be kell jelentkezned.



Az oldal teljeskörű
használatához regisztrálj.

Regisztráció

Kereső


Új téma nyitása Hozzászólás a témához  [10 hozzászólás ] 
Szerző Üzenet
 Hozzászólás témája: mód kiíró kicsit más hogy
HozzászólásElküldve:2013.04.24. 15:50 
Offline
Őskövület
Avatar

Csatlakozott:2011.12.28. 00:35
Hozzászólások:2736
Megköszönt másnak: 56 alkalommal
Megköszönték neki: 275 alkalommal
Hali.

Valaki ezt ki bírná javítani??

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <zombieplague>
  3.  
  4. /*================================================================================
  5.   [Customizations]
  6.   =================================================================================*/
  7.  
  8. // Hudmessage tag
  9. new const hud_tag[] = " "
  10.  
  11. // Name for each Hudmessage Mode
  12. new const mode_names[][] =
  13. {
  14. "", // No mode Started
  15. "*Normál fertőzéses*", // Normal Infection, single round
  16. "*Nemesis mód*", // Nemesis Mode (zombie boss)
  17. "*Túlélő mód*", // Survivor Mode (human boss)
  18. "*Raj mód*", // Swarm round (no infections)
  19. "*Többszőrös fertőzéses mód*", // Multiple Infection (like single round, but, more than 1 zombie)
  20. "*Pestis mód*", // Plague round (nemesis & zombies vs. survivors & humans)
  21. "*Ismeretlen mód*", // An unofficial mode (edited/created/modified by user)
  22. "*Armageddon mód*",
  23. "Jelenlegi Idő: %s",
  24. "Következő pálya: %s",
  25. "Hátralévő idő: %s"
  26. }
  27.  
  28. // RGB Colors for each Hudmessage Mode
  29. // See here some RGB Colors: http://web.njit.edu/~kevin/rgb.txt.html
  30. new const rgb_hud_colors[sizeof(mode_names)][3] =
  31. {
  32. // R G B
  33. {0, 255, 255,}, // No mode Started
  34. {0, 255, 255,}, // Normal Infection, single round
  35. {0, 255, 255,}, // Nemesis Mode (zombie boss)
  36. {0, 255, 255,}, // Survivor Mode (human boss)
  37. {0, 255, 255,}, // Swarm round (no infections)
  38. {0, 255, 255,}, // Multiple Infection (like single round, but, more than 1 zombie)
  39. {0, 255, 255,}, // Plague round (nemesis & zombies vs. survivors & humans)
  40. {0, 255, 255,}, // An unofficial mode (edited/created/modified by user)
  41. {0, 255, 255,}
  42. }
  43.  
  44. // X Hudmessage Position ( --- )
  45. const Float:HUD_MODE_X = 0.0
  46.  
  47. // Y Hudmessage Position ( ||| )
  48. const Float:HUD_MODE_Y = 0.2
  49.  
  50. // Time at which the Hudmessage is displayed. (when user is puted into the Server)
  51. const Float:START_TIME = 3.0
  52.  
  53. /*================================================================================
  54.   Customization ends here! Yes, that's it. Editing anything beyond
  55.   here is not officially supported. Proceed at your own risk...
  56.   =================================================================================*/
  57.  
  58. // Variables
  59. new g_SyncHud, g_Mode
  60.  
  61. // Cvar pointers
  62. new cvar_enable, cvar_central
  63.  
  64. public plugin_init()
  65. {
  66. // Plugin Info
  67. register_plugin("[ZP] Addon: Display the Current Mode", "0.1.6", "meTaLiCroSS")
  68. set_task(1.0, "show_time",0,"",0,"b")
  69.  
  70. // Round Start Event
  71. register_event("HLTV", "event_RoundStart", "a", "1=0", "2=0")
  72.  
  73. // Enable Cvar
  74. cvar_enable = register_cvar("zp_display_mode", "1")
  75.  
  76. // Server Cvar
  77. register_cvar("zp_addon_dtcm", "v0.1.6 by meTaLiCroSS", FCVAR_SERVER|FCVAR_SPONLY)
  78.  
  79. // Variables
  80. g_SyncHud = CreateHudSyncObj()
  81.  
  82. // Getting "zp_on" cvar
  83. if(cvar_exists("zp_on"))
  84. cvar_central = get_cvar_pointer("zp_on")
  85.  
  86. // If Zombie Plague is not running (bugfix)
  87. if(!get_pcvar_num(cvar_central))
  88. pause("a")
  89. }
  90.  
  91. public client_putinserver(id)
  92. {
  93. // Setting Hud
  94. set_task(START_TIME, "mode_hud", id, _, _, "b")
  95. }
  96.  
  97. public event_RoundStart()
  98. {
  99. // Update var (no mode started / in delay)
  100. g_Mode = 0
  101. }
  102.  
  103. public mode_hud(id)
  104. {
  105. // If the Cvar isn't enabled
  106. if(!get_pcvar_num(cvar_enable))
  107. return;
  108.  
  109. // Hud Options
  110. set_hudmessage(0, 255, 255, HUD_MODE_X, HUD_MODE_Y, 0, 6.0, 12.0)
  111.  
  112. // Now the hud appears
  113. ShowSyncHudMsg(id, g_SyncHud, "%s%s", (g_Mode == 0 ? "" : hud_tag), mode_names[g_Mode]), ido, kovmap, timeleft)
  114. }
  115.  
  116. public zp_round_started(mode, id)
  117. {
  118. // Update var with Mode num
  119. g_Mode = mode
  120. new kovmap[32]
  121.  
  122. new timeleft = get_timeleft()
  123.  
  124. // An unofficial mode
  125. if(!(1 <= mode < (sizeof(mode_names) - 1)))
  126. g_Mode = sizeof(mode_names) - 1
  127. new ido[9]
  128. get_cvar_string("amx_nextmap",kovmap,31)
  129. get_time("%H:%M:%S",ido,8)
  130. get_timeleft()
  131. new timeleft = get_timeleft()
  132. }
  133.  
  134. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  135.   *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1034\\ f0\\ fs16 \n\\ par }
  136.   */

_________________
****


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: mód kiíró kicsit más hogy
HozzászólásElküldve:2013.04.24. 16:51 
Offline
Félisten
Avatar

Csatlakozott:2010.09.16. 20:57
Hozzászólások:950
Megköszönt másnak: 9 alkalommal
Megköszönték neki: 101 alkalommal
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <zombieplague>
  3.  
  4. /*================================================================================
  5.   [Customizations]
  6.   =================================================================================*/
  7.  
  8. // Hudmessage tag
  9. new const hud_tag[] = " "
  10.  
  11. // Name for each Hudmessage Mode
  12. new const mode_names[][] =
  13. {
  14. "", // No mode Started
  15. "*Normál fertőzéses*", // Normal Infection, single round
  16. "*Nemesis mód*", // Nemesis Mode (zombie boss)
  17. "*Túlélő mód*", // Survivor Mode (human boss)
  18. "*Raj mód*", // Swarm round (no infections)
  19. "*Többszőrös fertőzéses mód*", // Multiple Infection (like single round, but, more than 1 zombie)
  20. "*Pestis mód*", // Plague round (nemesis & zombies vs. survivors & humans)
  21. "*Ismeretlen mód*", // An unofficial mode (edited/created/modified by user)
  22. "*Armageddon mód*",
  23. "Jelenlegi Idő: %s",
  24. "Következő pálya: %s",
  25. "Hátralévő idő: %s"
  26. }
  27.  
  28. // RGB Colors for each Hudmessage Mode
  29. // See here some RGB Colors: http://web.njit.edu/~kevin/rgb.txt.html
  30.  
  31. // X Hudmessage Position ( --- )
  32. const Float:HUD_MODE_X = 0.0
  33.  
  34. // Y Hudmessage Position ( ||| )
  35. const Float:HUD_MODE_Y = 0.2
  36.  
  37. // Time at which the Hudmessage is displayed. (when user is puted into the Server)
  38. const Float:START_TIME = 3.0
  39.  
  40. /*================================================================================
  41.   Customization ends here! Yes, that's it. Editing anything beyond
  42.   here is not officially supported. Proceed at your own risk...
  43.   =================================================================================*/
  44.  
  45. // Variables
  46. new g_SyncHud, g_Mode
  47.  
  48. // Cvar pointers
  49. new cvar_enable, cvar_central
  50.  
  51. public plugin_init()
  52. {
  53. // Plugin Info
  54. register_plugin("[ZP] Addon: Display the Current Mode", "0.1.6", "meTaLiCroSS")
  55. set_task(1.0, "show_time",0,"",0,"b")
  56.  
  57. // Round Start Event
  58. register_event("HLTV", "event_RoundStart", "a", "1=0", "2=0")
  59.  
  60. // Enable Cvar
  61. cvar_enable = register_cvar("zp_display_mode", "1")
  62.  
  63. // Server Cvar
  64. register_cvar("zp_addon_dtcm", "v0.1.6 by meTaLiCroSS", FCVAR_SERVER|FCVAR_SPONLY)
  65.  
  66. // Variables
  67. g_SyncHud = CreateHudSyncObj()
  68.  
  69. // Getting "zp_on" cvar
  70. if(cvar_exists("zp_on"))
  71. cvar_central = get_cvar_pointer("zp_on")
  72.  
  73. // If Zombie Plague is not running (bugfix)
  74. if(!get_pcvar_num(cvar_central))
  75. pause("a")
  76. }
  77.  
  78. public client_putinserver(id)
  79. {
  80. // Setting Hud
  81. set_task(START_TIME, "mode_hud", id, _, _, "b")
  82. }
  83.  
  84. public event_RoundStart()
  85. {
  86. // Update var (no mode started / in delay)
  87. g_Mode = 0
  88. }
  89.  
  90. public mode_hud(id)
  91. {
  92. // If the Cvar isn't enabled
  93. if(!get_pcvar_num(cvar_enable))
  94. return;
  95. new ido[9],kovmap[32]
  96. get_cvar_string("amx_nextmap",kovmap,31)
  97. get_time("%H:%M:%S",ido,8)
  98.  
  99. // Hud Options
  100. set_hudmessage(0, 255, 255, HUD_MODE_X, HUD_MODE_Y, 0, 6.0, 12.0)
  101.  
  102. // Now the hud appears
  103. ShowSyncHudMsg(id, g_SyncHud, "%s%s^n^nJelenlegi ido: %d^nKovetkezo palya: %s", (g_Mode == 0 ? "" : hud_tag), mode_names[g_Mode],ido,kovmap)
  104. }
  105.  
  106. public zp_round_started(mode, id)
  107. {
  108. // Update var with Mode num
  109. g_Mode = mode
  110.  
  111. // An unofficial mode
  112. if(!(1 <= mode < (sizeof(mode_names) - 1)))
  113. g_Mode = sizeof(mode_names) - 1
  114. }
  115.  

_________________
Weboldalam: nandee.smmg.hu
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: mód kiíró kicsit más hogy
HozzászólásElküldve:2013.04.24. 17:39 
Offline
Őskövület
Avatar

Csatlakozott:2011.12.28. 00:35
Hozzászólások:2736
Megköszönt másnak: 56 alkalommal
Megköszönték neki: 275 alkalommal
Nandee írta:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <zombieplague>
  3.  
  4. /*================================================================================
  5.   [Customizations]
  6.   =================================================================================*/
  7.  
  8. // Hudmessage tag
  9. new const hud_tag[] = " "
  10.  
  11. // Name for each Hudmessage Mode
  12. new const mode_names[][] =
  13. {
  14. "", // No mode Started
  15. "*Normál fertőzéses*", // Normal Infection, single round
  16. "*Nemesis mód*", // Nemesis Mode (zombie boss)
  17. "*Túlélő mód*", // Survivor Mode (human boss)
  18. "*Raj mód*", // Swarm round (no infections)
  19. "*Többszőrös fertőzéses mód*", // Multiple Infection (like single round, but, more than 1 zombie)
  20. "*Pestis mód*", // Plague round (nemesis & zombies vs. survivors & humans)
  21. "*Ismeretlen mód*", // An unofficial mode (edited/created/modified by user)
  22. "*Armageddon mód*",
  23. "Jelenlegi Idő: %s",
  24. "Következő pálya: %s",
  25. "Hátralévő idő: %s"
  26. }
  27.  
  28. // RGB Colors for each Hudmessage Mode
  29. // See here some RGB Colors: http://web.njit.edu/~kevin/rgb.txt.html
  30.  
  31. // X Hudmessage Position ( --- )
  32. const Float:HUD_MODE_X = 0.0
  33.  
  34. // Y Hudmessage Position ( ||| )
  35. const Float:HUD_MODE_Y = 0.2
  36.  
  37. // Time at which the Hudmessage is displayed. (when user is puted into the Server)
  38. const Float:START_TIME = 3.0
  39.  
  40. /*================================================================================
  41.   Customization ends here! Yes, that's it. Editing anything beyond
  42.   here is not officially supported. Proceed at your own risk...
  43.   =================================================================================*/
  44.  
  45. // Variables
  46. new g_SyncHud, g_Mode
  47.  
  48. // Cvar pointers
  49. new cvar_enable, cvar_central
  50.  
  51. public plugin_init()
  52. {
  53. // Plugin Info
  54. register_plugin("[ZP] Addon: Display the Current Mode", "0.1.6", "meTaLiCroSS")
  55. set_task(1.0, "show_time",0,"",0,"b")
  56.  
  57. // Round Start Event
  58. register_event("HLTV", "event_RoundStart", "a", "1=0", "2=0")
  59.  
  60. // Enable Cvar
  61. cvar_enable = register_cvar("zp_display_mode", "1")
  62.  
  63. // Server Cvar
  64. register_cvar("zp_addon_dtcm", "v0.1.6 by meTaLiCroSS", FCVAR_SERVER|FCVAR_SPONLY)
  65.  
  66. // Variables
  67. g_SyncHud = CreateHudSyncObj()
  68.  
  69. // Getting "zp_on" cvar
  70. if(cvar_exists("zp_on"))
  71. cvar_central = get_cvar_pointer("zp_on")
  72.  
  73. // If Zombie Plague is not running (bugfix)
  74. if(!get_pcvar_num(cvar_central))
  75. pause("a")
  76. }
  77.  
  78. public client_putinserver(id)
  79. {
  80. // Setting Hud
  81. set_task(START_TIME, "mode_hud", id, _, _, "b")
  82. }
  83.  
  84. public event_RoundStart()
  85. {
  86. // Update var (no mode started / in delay)
  87. g_Mode = 0
  88. }
  89.  
  90. public mode_hud(id)
  91. {
  92. // If the Cvar isn't enabled
  93. if(!get_pcvar_num(cvar_enable))
  94. return;
  95. new ido[9],kovmap[32]
  96. get_cvar_string("amx_nextmap",kovmap,31)
  97. get_time("%H:%M:%S",ido,8)
  98.  
  99. // Hud Options
  100. set_hudmessage(0, 255, 255, HUD_MODE_X, HUD_MODE_Y, 0, 6.0, 12.0)
  101.  
  102. // Now the hud appears
  103. ShowSyncHudMsg(id, g_SyncHud, "%s%s^n^nJelenlegi ido: %d^nKovetkezo palya: %s", (g_Mode == 0 ? "" : hud_tag), mode_names[g_Mode],ido,kovmap)
  104. }
  105.  
  106. public zp_round_started(mode, id)
  107. {
  108. // Update var with Mode num
  109. g_Mode = mode
  110.  
  111. // An unofficial mode
  112. if(!(1 <= mode < (sizeof(mode_names) - 1)))
  113. g_Mode = sizeof(mode_names) - 1
  114. }
  115.  


Nem ír ki semmit. :(

_________________
****


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: mód kiíró kicsit más hogy
HozzászólásElküldve:2013.04.24. 17:49 
Offline
Őstag
Avatar

Csatlakozott:2011.11.15. 16:29
Hozzászólások:1142
Megköszönt másnak: 8 alkalommal
Megköszönték neki: 24 alkalommal
Azthiszem Kiki már javította nálam , de én sose használtam fel megkeresem valahol a póstaládában:)

ui.: Vagyis ő csinálta meg nekemis! De én nem használom/használtam!:D

_________________
[url=http://www.gametracker.com/server_info/188.227.227.114:27286/][img]http://cache.www.gametracker.com/server_info/188.227.227.114:27286/b_350_20_323957_202743_F19A15_111111.png[/img][/url]


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: mód kiíró kicsit más hogy
HozzászólásElküldve:2013.04.24. 17:51 
Offline
Őskövület
Avatar

Csatlakozott:2011.12.28. 00:35
Hozzászólások:2736
Megköszönt másnak: 56 alkalommal
Megköszönték neki: 275 alkalommal
chasper.cfg írta:
Azthiszem Kiki már javította nálam , de én sose használtam fel megkeresem valahol a póstaládában:)

ui.: Vagyis ő csinálta meg nekemis! De én nem használom/használtam!:D


Úh azt nagyon meg köszöném :D

_________________
****


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: mód kiíró kicsit más hogy
HozzászólásElküldve:2013.04.24. 17:52 
Offline
Őstag
Avatar

Csatlakozott:2011.11.15. 16:29
Hozzászólások:1142
Megköszönt másnak: 8 alkalommal
Megköszönték neki: 24 alkalommal
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <zombieplague>
  3. #include <cstrike>
  4. #include <engine>
  5. /*================================================================================
  6.  [Customizations]
  7. =================================================================================*/
  8.  
  9. // Hudmessage tag
  10. new const hud_tag[] = "Jelenlegi mod : "
  11. #define INFORMERTID 100503
  12. new g_MaxClients;
  13. new g_HudText;
  14. // Name for each Hudmessage Mode
  15. new const mode_names[][] =
  16. {
  17. "Várakozás uj modra...", // No mode Started
  18. "Normál fertozes", // Normal Infection, single round
  19. "Nemesis Mode", // Nemesis Mode (zombie boss)
  20. "Assassin Mode", // Assasin Mode (zombie boss)
  21. "Tulelo Mode", // Survivor Mode (human boss)
  22. "Fejlovesz Mode", // Sniper Mode (human boss)
  23. "Raj Mode", // Swarm round (no infections)
  24. "Tobbszoros fertozes", // Multiple Infection (like single round, but, more than 1 zombie)
  25. "Plague Mode", // Plague round (nemesis & zombies vs. survivors & humans)
  26. "Armageddon Mode", // LNJ round (nemesis & zombies vs. survivors & humans)
  27. "Snipers VS Assassins" // An unofficial mode (edited/created/modified by user)
  28. }
  29.  
  30. // RGB Colors for each Hudmessage Mode
  31. // See here some RGB Colors: http://web.njit.edu/~kevin/rgb.txt.html
  32. new const rgb_hud_colors[sizeof(mode_names)][3] =
  33. {
  34. // R G B
  35. {255, 20, 147}, // No mode Started
  36. {3, 180, 200}, // Normal Infection, single round
  37. {255, 0, 0}, // Nemesis Mode (zombie boss)
  38. {255, 0, 0}, // Assasin Mode (zombie boss)
  39. {0, 191, 255}, // Survivor Mode (human boss)
  40. {0, 0, 255}, // Sniper Mode (human boss)
  41. {255, 255, 0}, // Swarm round (no infections)
  42. {205, 127, 50}, // Multiple Infection (like single round, but, more than 1 zombie)
  43. {205, 127, 50}, // Plague round (nemesis & zombies vs. survivors & humans)
  44. {205, 127, 50}, // LNJ round (nemesis & zombies vs. survivors & humans)
  45. {255, 20, 147} // An unofficial mode (edited/created/modified by user)
  46. }
  47.  
  48. // X Hudmessage Position ( --- )
  49. const Float:HUD_MODE_X = 0.02
  50.  
  51. // Y Hudmessage Position ( ||| )
  52. const Float:HUD_MODE_Y = 0.2
  53.  
  54. // Time at which the Hudmessage is displayed. (when user is puted into the Server)
  55. const Float:START_TIME = 1.0
  56.  
  57. /*================================================================================
  58.  Customization ends here! Yes, that's it. Editing anything beyond
  59.  here is not officially supported. Proceed at your own risk...
  60. =================================================================================*/
  61.  
  62. // Variables
  63. new g_SyncHud, g_Mode
  64.  
  65. // Cvar pointers
  66. new cvar_enable, cvar_central
  67.  
  68. public plugin_init()
  69. {
  70. // Plugin Info
  71. register_plugin("[ZP] Addon: Display the Current Mode", "0.1.7", "meTaLiCroSS & SeniorRamos")
  72.  
  73. // Round Start Event
  74. register_event("HLTV", "event_RoundStart", "a", "1=0", "2=0")
  75.  
  76. // Enable Cvar
  77. cvar_enable = register_cvar("zp_display_mode", "1")
  78.  
  79. // Server Cvar
  80. register_cvar("zp_addon_dtcm", "v0.1.6 by meTaLiCroSS", FCVAR_SERVER|FCVAR_SPONLY)
  81. set_task(0.1, "Informer", INFORMERTID, "", 0, "b");
  82. // Variables
  83. g_SyncHud = CreateHudSyncObj()
  84. g_MaxClients = get_global_int(GL_maxClients);
  85. g_HudText = CreateHudSyncObj();
  86. // Getting "zp_on" cvar
  87. if(cvar_exists("zp_on"))
  88. cvar_central = get_cvar_pointer("zp_on")
  89.  
  90. // If Zombie Plague is not running (bugfix)
  91. if(!get_pcvar_num(cvar_central))
  92. pause("a")
  93. }
  94.  
  95. public client_putinserver(id)
  96. {
  97. // Setting Hud
  98. set_task(START_TIME, "mode_hud", id, _, _, "b")
  99. }
  100.  
  101. public event_RoundStart()
  102. {
  103. // Update var (no mode started / in delay)
  104. g_Mode = 0
  105. }
  106.  
  107. public mode_hud(id)
  108. {
  109. // If the Cvar isn't enabled
  110. if(!get_pcvar_num(cvar_enable))
  111. return;
  112.  
  113. // Hud Options
  114. set_hudmessage(rgb_hud_colors[g_Mode][0], rgb_hud_colors[g_Mode][1], rgb_hud_colors[g_Mode][2], HUD_MODE_X, HUD_MODE_Y, 0, 6.0, 12.0)
  115.  
  116. // Now the hud appears
  117. ShowSyncHudMsg(id, g_SyncHud, "%s%s", (g_Mode == 0 ? "" : hud_tag), mode_names[g_Mode])
  118. }
  119.  
  120. public zp_round_started(mode, id)
  121. {
  122. // Update var with Mode num
  123. g_Mode = mode
  124.  
  125. // An unofficial mode
  126. if(!(1 <= mode < (sizeof(mode_names) - 1)))
  127. g_Mode = sizeof(mode_names) - 1
  128. }
  129.  
  130. public Informer()
  131. {
  132. new id, all, CurrentTime[32], NextMap[32], Message[512], admins;
  133. for(id = 1; id <= g_MaxClients; id++)
  134. {
  135. if(!is_user_connected(id))
  136. {
  137. continue
  138. }
  139. else if(get_user_flags(id) & ADMIN_BAN)
  140. {
  141. admins++
  142. }
  143. else
  144. {
  145. all++
  146. }
  147. }
  148. for(id = 1; id <= g_MaxClients; id++)
  149. {
  150. new Len
  151.  
  152. get_time("%H:%M:%S", CurrentTime, 31)
  153. Len += format(Message[Len], 511 - Len, "^nIdő: %s", CurrentTime)
  154. Len += format(Message[Len], 511 - Len, "^nOnline játékosok: %d/%d", all, g_MaxClients)
  155. get_cvar_string("amx_nextmap", NextMap, 31)
  156. Len += format(Message[Len], 511 - Len, "^nKövetkező pálya: %s", NextMap)
  157. Len += format(Message[Len], 511 - Len, "^nOnline adminok:: %d", admins)
  158. Len += format(Message[Len], 511 - Len, "^nFacebook: http://www.facebook.com/bzsolt1")
  159.  
  160. set_hudmessage(rgb_hud_colors[g_Mode][0], rgb_hud_colors[g_Mode][1], rgb_hud_colors[g_Mode][2], 0.01, 0.14, 0, 1.0, 1.0)
  161.  
  162. ShowSyncHudMsg(id, g_HudText, "%s", Message)
  163. }
  164. return PLUGIN_CONTINUE
  165. }
  166.  
  167. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  168. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1034\\ f0\\ fs16 \n\\ par }
  169. */


Ez az de vegyél ki 1-2 dolgot :)

ja most nézem a hátralévő idő nincs benne , akkor azt is csináld meg :D mert én most tabon vok félálomba :D :lol:

_________________
[url=http://www.gametracker.com/server_info/188.227.227.114:27286/][img]http://cache.www.gametracker.com/server_info/188.227.227.114:27286/b_350_20_323957_202743_F19A15_111111.png[/img][/url]


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: mód kiíró kicsit más hogy
HozzászólásElküldve:2013.04.24. 17:54 
Offline
Őskövület
Avatar

Csatlakozott:2011.12.28. 00:35
Hozzászólások:2736
Megköszönt másnak: 56 alkalommal
Megköszönték neki: 275 alkalommal
chasper.cfg írta:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <zombieplague>
  3. #include <cstrike>
  4. #include <engine>
  5. /*================================================================================
  6.  [Customizations]
  7. =================================================================================*/
  8.  
  9. // Hudmessage tag
  10. new const hud_tag[] = "Jelenlegi mod : "
  11. #define INFORMERTID 100503
  12. new g_MaxClients;
  13. new g_HudText;
  14. // Name for each Hudmessage Mode
  15. new const mode_names[][] =
  16. {
  17. "Várakozás uj modra...", // No mode Started
  18. "Normál fertozes", // Normal Infection, single round
  19. "Nemesis Mode", // Nemesis Mode (zombie boss)
  20. "Assassin Mode", // Assasin Mode (zombie boss)
  21. "Tulelo Mode", // Survivor Mode (human boss)
  22. "Fejlovesz Mode", // Sniper Mode (human boss)
  23. "Raj Mode", // Swarm round (no infections)
  24. "Tobbszoros fertozes", // Multiple Infection (like single round, but, more than 1 zombie)
  25. "Plague Mode", // Plague round (nemesis & zombies vs. survivors & humans)
  26. "Armageddon Mode", // LNJ round (nemesis & zombies vs. survivors & humans)
  27. "Snipers VS Assassins" // An unofficial mode (edited/created/modified by user)
  28. }
  29.  
  30. // RGB Colors for each Hudmessage Mode
  31. // See here some RGB Colors: http://web.njit.edu/~kevin/rgb.txt.html
  32. new const rgb_hud_colors[sizeof(mode_names)][3] =
  33. {
  34. // R G B
  35. {255, 20, 147}, // No mode Started
  36. {3, 180, 200}, // Normal Infection, single round
  37. {255, 0, 0}, // Nemesis Mode (zombie boss)
  38. {255, 0, 0}, // Assasin Mode (zombie boss)
  39. {0, 191, 255}, // Survivor Mode (human boss)
  40. {0, 0, 255}, // Sniper Mode (human boss)
  41. {255, 255, 0}, // Swarm round (no infections)
  42. {205, 127, 50}, // Multiple Infection (like single round, but, more than 1 zombie)
  43. {205, 127, 50}, // Plague round (nemesis & zombies vs. survivors & humans)
  44. {205, 127, 50}, // LNJ round (nemesis & zombies vs. survivors & humans)
  45. {255, 20, 147} // An unofficial mode (edited/created/modified by user)
  46. }
  47.  
  48. // X Hudmessage Position ( --- )
  49. const Float:HUD_MODE_X = 0.02
  50.  
  51. // Y Hudmessage Position ( ||| )
  52. const Float:HUD_MODE_Y = 0.2
  53.  
  54. // Time at which the Hudmessage is displayed. (when user is puted into the Server)
  55. const Float:START_TIME = 1.0
  56.  
  57. /*================================================================================
  58.  Customization ends here! Yes, that's it. Editing anything beyond
  59.  here is not officially supported. Proceed at your own risk...
  60. =================================================================================*/
  61.  
  62. // Variables
  63. new g_SyncHud, g_Mode
  64.  
  65. // Cvar pointers
  66. new cvar_enable, cvar_central
  67.  
  68. public plugin_init()
  69. {
  70. // Plugin Info
  71. register_plugin("[ZP] Addon: Display the Current Mode", "0.1.7", "meTaLiCroSS & SeniorRamos")
  72.  
  73. // Round Start Event
  74. register_event("HLTV", "event_RoundStart", "a", "1=0", "2=0")
  75.  
  76. // Enable Cvar
  77. cvar_enable = register_cvar("zp_display_mode", "1")
  78.  
  79. // Server Cvar
  80. register_cvar("zp_addon_dtcm", "v0.1.6 by meTaLiCroSS", FCVAR_SERVER|FCVAR_SPONLY)
  81. set_task(0.1, "Informer", INFORMERTID, "", 0, "b");
  82. // Variables
  83. g_SyncHud = CreateHudSyncObj()
  84. g_MaxClients = get_global_int(GL_maxClients);
  85. g_HudText = CreateHudSyncObj();
  86. // Getting "zp_on" cvar
  87. if(cvar_exists("zp_on"))
  88. cvar_central = get_cvar_pointer("zp_on")
  89.  
  90. // If Zombie Plague is not running (bugfix)
  91. if(!get_pcvar_num(cvar_central))
  92. pause("a")
  93. }
  94.  
  95. public client_putinserver(id)
  96. {
  97. // Setting Hud
  98. set_task(START_TIME, "mode_hud", id, _, _, "b")
  99. }
  100.  
  101. public event_RoundStart()
  102. {
  103. // Update var (no mode started / in delay)
  104. g_Mode = 0
  105. }
  106.  
  107. public mode_hud(id)
  108. {
  109. // If the Cvar isn't enabled
  110. if(!get_pcvar_num(cvar_enable))
  111. return;
  112.  
  113. // Hud Options
  114. set_hudmessage(rgb_hud_colors[g_Mode][0], rgb_hud_colors[g_Mode][1], rgb_hud_colors[g_Mode][2], HUD_MODE_X, HUD_MODE_Y, 0, 6.0, 12.0)
  115.  
  116. // Now the hud appears
  117. ShowSyncHudMsg(id, g_SyncHud, "%s%s", (g_Mode == 0 ? "" : hud_tag), mode_names[g_Mode])
  118. }
  119.  
  120. public zp_round_started(mode, id)
  121. {
  122. // Update var with Mode num
  123. g_Mode = mode
  124.  
  125. // An unofficial mode
  126. if(!(1 <= mode < (sizeof(mode_names) - 1)))
  127. g_Mode = sizeof(mode_names) - 1
  128. }
  129.  
  130. public Informer()
  131. {
  132. new id, all, CurrentTime[32], NextMap[32], Message[512], admins;
  133. for(id = 1; id <= g_MaxClients; id++)
  134. {
  135. if(!is_user_connected(id))
  136. {
  137. continue
  138. }
  139. else if(get_user_flags(id) & ADMIN_BAN)
  140. {
  141. admins++
  142. }
  143. else
  144. {
  145. all++
  146. }
  147. }
  148. for(id = 1; id <= g_MaxClients; id++)
  149. {
  150. new Len
  151.  
  152. get_time("%H:%M:%S", CurrentTime, 31)
  153. Len += format(Message[Len], 511 - Len, "^nIdő: %s", CurrentTime)
  154. Len += format(Message[Len], 511 - Len, "^nOnline játékosok: %d/%d", all, g_MaxClients)
  155. get_cvar_string("amx_nextmap", NextMap, 31)
  156. Len += format(Message[Len], 511 - Len, "^nKövetkező pálya: %s", NextMap)
  157. Len += format(Message[Len], 511 - Len, "^nOnline adminok:: %d", admins)
  158. Len += format(Message[Len], 511 - Len, "^nFacebook: http://www.facebook.com/bzsolt1")
  159.  
  160. set_hudmessage(rgb_hud_colors[g_Mode][0], rgb_hud_colors[g_Mode][1], rgb_hud_colors[g_Mode][2], 0.01, 0.14, 0, 1.0, 1.0)
  161.  
  162. ShowSyncHudMsg(id, g_HudText, "%s", Message)
  163. }
  164. return PLUGIN_CONTINUE
  165. }
  166.  
  167. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  168. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1034\\ f0\\ fs16 \n\\ par }
  169. */


Ez az de vegyél ki 1-2 dolgot :)


Júj de köszönöm :D

_________________
****


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: mód kiíró kicsit más hogy
HozzászólásElküldve:2013.04.24. 17:54 
Offline
Őstag
Avatar

Csatlakozott:2011.11.15. 16:29
Hozzászólások:1142
Megköszönt másnak: 8 alkalommal
Megköszönték neki: 24 alkalommal
Ez kicsit másfajta :) De szerintem jó!

_________________
[url=http://www.gametracker.com/server_info/188.227.227.114:27286/][img]http://cache.www.gametracker.com/server_info/188.227.227.114:27286/b_350_20_323957_202743_F19A15_111111.png[/img][/url]


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: mód kiíró kicsit más hogy
HozzászólásElküldve:2013.04.24. 21:58 
Offline
Őskövület
Avatar

Csatlakozott:2011.12.28. 00:35
Hozzászólások:2736
Megköszönt másnak: 56 alkalommal
Megköszönték neki: 275 alkalommal
chasper.cfg írta:
Ez kicsit másfajta :) De szerintem jó!


Igen. Tökéletes :D

_________________
****


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: mód kiíró kicsit más hogy
HozzászólásElküldve:2013.04.25. 13:25 
Offline
Őstag
Avatar

Csatlakozott:2011.11.15. 16:29
Hozzászólások:1142
Megköszönt másnak: 8 alkalommal
Megköszönték neki: 24 alkalommal
Nemsokára énis publikálom az általam konfigolt Zp-t! :D De az 4.3-lesz!:)

_________________
[url=http://www.gametracker.com/server_info/188.227.227.114:27286/][img]http://cache.www.gametracker.com/server_info/188.227.227.114:27286/b_350_20_323957_202743_F19A15_111111.png[/img][/url]


Hozzászólás jelentése
Vissza a tetejére
   
Hozzászólások megjelenítése: Rendezés 
Új téma nyitása Hozzászólás a témához  [10 hozzászólás ] 


Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 17 vendég


Nyithatsz új témákat ebben a fórumban.
Válaszolhatsz egy témára ebben a fórumban.
Nem szerkesztheted a hozzászólásaidat ebben a fórumban.
Nem törölheted a hozzászólásaidat ebben a fórumban.
Nem küldhetsz csatolmányokat ebben a fórumban.

Keresés:
Ugrás:  
Powered by phpBB® Forum Software © phpBB Limited
Magyar fordítás © Magyar phpBB Közösség
Portal: Kiss Portal Extension © Michael O'Toole