hlmod.hu

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



Jelenlévő felhasználók

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

A legtöbb felhasználó (1565 fő) 2020.11.21. 11:26-kor tartózkodott itt.

Regisztrált felhasználók: Bing [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  [ 8 hozzászólás ] 
Szerző Üzenet
 Hozzászólás témája: Szerver time késik
HozzászólásElküldve: 2014.05.31. 00:10 
Offline
Lelkes

Csatlakozott: 2014.05.30. 21:39
Hozzászólások: 16
Megköszönt másnak: 3 alkalommal
Hali!

Először is bocs, ha már van ilyen téma, illetve ha le van írva valahova.

A szerveren az óra (thetime) 2 percet késik. (Hogy tudnám megoldani?)
Illetve a timeleft parancsra is azt írja ki hogy: Nincs időhatár (Ezt hogy tudnám megnézni, hogy esetleg mi miatt van?)
Továbbá a rtv parancsra is, elegendő idő után a mapon, mindig azt írja hogy várnod kell még. (Ez gondolom, amiatt van hogy nincs időhatár.)
Ez a 3 problémám lenne mind a 3 az időhöz kötődik. Ha valaki tudna segíteni megköszönném. :D


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Szerver time késik
HozzászólásElküldve: 2014.05.31. 01:12 
Offline
Minden6ó
Avatar

Csatlakozott: 2011.01.19. 12:14
Hozzászólások: 4284
Megköszönt másnak: 218 alkalommal
Megköszönték neki: 287 alkalommal
Van beallitva palya ido? Ha nincs akkor az mp_timelefet cvarhoz irj egy idot, a cvart a server.cfgbe talalod. Ha nem volt id ido beallitva akkor 2 problema kilove.

_________________
<<eb@>>Team Website - Közösség
17Buddies - Általam készített pályák.
GameBanana - Általam készített pályák/vágott hangok.

Kép
Kép


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Szerver time késik
HozzászólásElküldve: 2014.05.31. 09:38 
Offline
Lelkes

Csatlakozott: 2014.05.30. 21:39
Hozzászólások: 16
Megköszönt másnak: 3 alkalommal
Van idő beállítva, ezt 3x is megnéztem még mielőtt kérdést írtam. Bocs, hogy nem írtam oda előre.
Lehet valamilyen plugin rontotta el, meg tudom nézni valahogy?


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Szerver time késik
HozzászólásElküldve: 2014.05.31. 10:31 
Offline
Lelkes

Csatlakozott: 2014.05.30. 21:39
Hozzászólások: 16
Megköszönt másnak: 3 alkalommal
Először is bocs a dupla postért.
Sikerült rájönnöm melyik plugin rontja el a timeleftet és az rtv-t.
Az a plugin nem jó ezek szerint hogy a szerver még megvárja az utolsó kört, még mielőtt mapot vált.

Viszont a szerver idő (thetime) még mindig 2 percet késik. Ezt hol tudnám beállítani?


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Szerver time késik
HozzászólásElküldve: 2014.05.31. 10:44 
Offline
Őskövület
Avatar

Csatlakozott: 2012.02.27. 09:42
Hozzászólások: 2588
Megköszönt másnak: 26 alkalommal
Megköszönték neki: 418 alkalommal
szia 2 megoldás lehetséges

1. szólsz a hostnak h állítsa be az órát a szervergépen
2. megkeresed azt a plugint amibe a thetime parancs szerepel és ott hozzáadsz 2 őt a perc értékéhez

próbáld így: teloról csináltam nem tom h megy e
SMA Forráskód: [ Mindet kijelol ]
  1. /* AMX Mod X
  2. * TimeLeft Plugin
  3. *
  4. * by the AMX Mod X Development Team
  5. * originally developed by OLO
  6. *
  7. * This file is part of AMX Mod X.
  8. *
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at
  13. * your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful, but
  16. * WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software Foundation,
  22. * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. *
  24. * In addition, as a special exception, the author gives permission to
  25. * link the code of this program with the Half-Life Game Engine ("HL
  26. * Engine") and Modified Game Libraries ("MODs") developed by Valve,
  27. * L.L.C ("Valve"). You must obey the GNU General Public License in all
  28. * respects for all of the code used other than the HL Engine and MODs
  29. * from Valve. If you modify this file, you may extend this exception
  30. * to your version of the file, but you are not obligated to do so. If
  31. * you do not wish to do so, delete this exception statement from your
  32. * version.
  33. */
  34.  
  35. #include <amxmodx>
  36.  
  37. new g_TimeSet[32][2]
  38. new g_LastTime
  39. new g_CountDown
  40. new g_Switch
  41.  
  42. public plugin_init()
  43. {
  44. register_plugin("TimeLeft", AMXX_VERSION_STR, "AMXX Dev Team")
  45. register_dictionary("timeleft.txt")
  46. register_cvar("amx_time_voice", "1")
  47. register_srvcmd("amx_time_display", "setDisplaying")
  48. register_cvar("amx_timeleft", "00:00", FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
  49. register_clcmd("say timeleft", "sayTimeLeft", 0, "- displays timeleft")
  50. register_clcmd("say thetime", "sayTheTime", 0, "- displays current time")
  51.  
  52. set_task(0.8, "timeRemain", 8648458, "", 0, "b")
  53. }
  54.  
  55. public sayTheTime(id)
  56. {
  57. if (get_cvar_num("amx_time_voice"))
  58. {
  59. new mhours[6], mmins[6], whours[32], wmins[32], wpm[6]
  60.  
  61. get_time("%H", mhours, 5)
  62. get_time("%M", mmins, 5)
  63.  
  64. new mins = str_to_num(mmins)
  65. new hrs = str_to_num(mhours)
  66.  
  67. if (mins)
  68. num_to_word(mins, wmins, 31)
  69. else
  70. wmins[0] = 0
  71.  
  72. if (hrs < 12)
  73. wpm = "am "
  74. else
  75. {
  76. if (hrs > 12) hrs -= 12
  77. wpm = "pm "
  78. }
  79.  
  80. if (hrs)
  81. num_to_word(hrs, whours, 31)
  82. else
  83. whours = "twelve "
  84.  
  85. client_cmd(id, "spk ^"fvox/time_is_now %s_period %s%s^"", whours, wmins, wpm)
  86. }
  87.  
  88. new ctime[64]
  89.  
  90. get_time("%m/%d/%Y - %H:%M+2:%S", ctime, 63)
  91.  
  92. client_print(0, print_chat, "%L: %s", LANG_PLAYER, "THE_TIME", ctime)
  93.  
  94. return PLUGIN_CONTINUE
  95. }
  96.  
  97. public sayTimeLeft(id)
  98. {
  99. if (get_cvar_float("mp_timelimit"))
  100. {
  101. new a = get_timeleft()
  102.  
  103. if (get_cvar_num("amx_time_voice"))
  104. {
  105. new svoice[128]
  106. setTimeVoice(svoice, 127, 0, a)
  107. client_cmd(id, "%s", svoice)
  108. }
  109. client_print(0, print_chat, "%L: %d:%02d", LANG_PLAYER, "TIME_LEFT", (a / 60), (a % 60))
  110. }
  111. else
  112. client_print(0, print_chat, "%L", LANG_PLAYER, "NO_T_LIMIT")
  113.  
  114. return PLUGIN_CONTINUE
  115. }
  116.  
  117. setTimeText(text[], len, tmlf, id)
  118. {
  119. new secs = tmlf % 60
  120. new mins = tmlf / 60
  121.  
  122. if (secs == 0)
  123. format(text, len, "%d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE")
  124. else if (mins == 0)
  125. format(text, len, "%d %L", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
  126. else
  127. format(text, len, "%d %L %d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
  128. }
  129.  
  130. setTimeVoice(text[], len, flags, tmlf)
  131. {
  132. new temp[7][32]
  133. new secs = tmlf % 60
  134. new mins = tmlf / 60
  135.  
  136. for (new a = 0;a < 7;++a)
  137. temp[a][0] = 0
  138.  
  139. if (secs > 0)
  140. {
  141. num_to_word(secs, temp[4], 31)
  142.  
  143. if (!(flags & 8))
  144. temp[5] = "seconds " /* there is no "second" in default hl */
  145. }
  146.  
  147. if (mins > 59)
  148. {
  149. new hours = mins / 60
  150.  
  151. num_to_word(hours, temp[0], 31)
  152.  
  153. if (!(flags & 8))
  154. temp[1] = "hours "
  155.  
  156. mins = mins % 60
  157. }
  158.  
  159. if (mins > 0)
  160. {
  161. num_to_word(mins, temp[2], 31)
  162.  
  163. if (!(flags & 8))
  164. temp[3] = "minutes "
  165. }
  166.  
  167. if (!(flags & 4))
  168. temp[6] = "remaining "
  169.  
  170. return format(text, len, "spk ^"vox/%s%s%s%s%s%s%s^"", temp[0], temp[1], temp[2], temp[3], temp[4], temp[5], temp[6])
  171. }
  172.  
  173. findDispFormat(time)
  174. {
  175. for (new i = 0; g_TimeSet[i][0]; ++i)
  176. {
  177. if (g_TimeSet[i][1] & 16)
  178. {
  179. if (g_TimeSet[i][0] > time)
  180. {
  181. if (!g_Switch)
  182. {
  183. g_CountDown = g_Switch = time
  184. remove_task(8648458)
  185. set_task(1.0, "timeRemain", 34543, "", 0, "b")
  186. }
  187.  
  188. return i
  189. }
  190. }
  191. else if (g_TimeSet[i][0] == time)
  192. {
  193. return i
  194. }
  195. }
  196.  
  197. return -1
  198. }
  199.  
  200. public setDisplaying()
  201. {
  202. new arg[32], flags[32], num[32]
  203. new argc = read_argc() - 1
  204. new i = 0
  205.  
  206. while (i < argc && i < 32)
  207. {
  208. read_argv(i + 1, arg, 31)
  209. parse(arg, flags, 31, num, 31)
  210.  
  211. g_TimeSet[i][0] = str_to_num(num)
  212. g_TimeSet[i][1] = read_flags(flags)
  213.  
  214. i++
  215. }
  216. g_TimeSet[i][0] = 0
  217.  
  218. return PLUGIN_HANDLED
  219. }
  220.  
  221. public timeRemain(param[])
  222. {
  223. new gmtm = get_timeleft()
  224. new tmlf = g_Switch ? --g_CountDown : gmtm
  225. new stimel[12]
  226.  
  227. format(stimel, 11, "%02d:%02d", gmtm / 60, gmtm % 60)
  228. set_cvar_string("amx_timeleft", stimel)
  229.  
  230. if (g_Switch && gmtm > g_Switch)
  231. {
  232. remove_task(34543)
  233. g_Switch = 0
  234. set_task(0.8, "timeRemain", 8648458, "", 0, "b")
  235.  
  236. return
  237. }
  238.  
  239. if (tmlf > 0 && g_LastTime != tmlf)
  240. {
  241. g_LastTime = tmlf
  242. new tm_set = findDispFormat(tmlf)
  243.  
  244. if (tm_set != -1)
  245. {
  246. new flags = g_TimeSet[tm_set][1]
  247. new arg[128]
  248.  
  249. if (flags & 1)
  250. {
  251. new players[32], pnum
  252.  
  253. get_players(players, pnum, "c")
  254.  
  255. for (new i = 0; i < pnum; i++)
  256. {
  257. setTimeText(arg, 127, tmlf, players[i])
  258.  
  259. if (flags & 16)
  260. set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 1.1, 0.1, 0.5, -1)
  261. else
  262. set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 3.0, 0.0, 0.5, -1)
  263.  
  264. show_hudmessage(players[i], "%s", arg)
  265. }
  266. }
  267.  
  268. if (flags & 2)
  269. {
  270. setTimeVoice(arg, 127, flags, tmlf)
  271. client_cmd(0, "%s", arg)
  272. }
  273. }
  274. }
  275. }
  276.  

_________________
Kép

Ők köszönték meg CrB nek ezt a hozzászólást: Wezon (2014.05.31. 12:40)
  Népszerűség: 2.27%


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Szerver time késik
HozzászólásElküldve: 2014.05.31. 11:29 
Offline
Lelkes

Csatlakozott: 2014.05.30. 21:39
Hozzászólások: 16
Megköszönt másnak: 3 alkalommal
Kösz hogy, még teloról is próbáltál segíteni.
Működik, így néz ki:
Az ido: 05/31/2014 - 11:22+2:18
Kár hogy nem adja hozzá, de inkább szolok a hostingnak, hogy állítsák be.

Viszont nem tudom miért bugos az utolsó kör pluginom. (kikapcsolja a timeleftet)
Tudna valaki adni egy jót?

Továbbá a galileo azt írja hogy nem talál pályákat szavaztatni. (mapcycleba beírtam.)
Ötlet hogy hova kellene még beírni, illetve hogy miért nem találja?

EDIT:
Sikerült találjak jó utolsó kör plgunint ami nem blokkolja a timeleftet és működik is.
Viszont a galileo rtv nél megszavaztatja a mapokat, de amikor vége a map időnek nem szavaztatja meg a mapokat, azt írja hogy:
A szavazás sikertelen; nem találok pályákat. (mapcycleba és maps be benne vannak a mapok)
Erre van valakinek ötlete hogy miért nem jó? (RTV nél jó)

szerk: rtv is csak resi után megy első mapon, első mapon resi után viszont a kör végét se várja meg.
Ötlet?


A hozzászólást 1 alkalommal szerkesztették, utoljára CrB 2014.05.31. 13:35-kor.
duplaposztot kerüld


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Szerver time késik
HozzászólásElküldve: 2014.05.31. 13:34 
Offline
Őskövület
Avatar

Csatlakozott: 2012.02.27. 09:42
Hozzászólások: 2588
Megköszönt másnak: 26 alkalommal
Megköszönték neki: 418 alkalommal
a thetime-s cuccot próbáld :D
SMA Forráskód: [ Mindet kijelol ]
  1. /* AMX Mod X
  2. * TimeLeft Plugin
  3. *
  4. * by the AMX Mod X Development Team
  5. * originally developed by OLO
  6. *
  7. * This file is part of AMX Mod X.
  8. *
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at
  13. * your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful, but
  16. * WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software Foundation,
  22. * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. *
  24. * In addition, as a special exception, the author gives permission to
  25. * link the code of this program with the Half-Life Game Engine ("HL
  26. * Engine") and Modified Game Libraries ("MODs") developed by Valve,
  27. * L.L.C ("Valve"). You must obey the GNU General Public License in all
  28. * respects for all of the code used other than the HL Engine and MODs
  29. * from Valve. If you modify this file, you may extend this exception
  30. * to your version of the file, but you are not obligated to do so. If
  31. * you do not wish to do so, delete this exception statement from your
  32. * version.
  33. */
  34.  
  35. #include <amxmodx>
  36.  
  37. new g_TimeSet[32][2]
  38. new g_LastTime
  39. new g_CountDown
  40. new g_Switch
  41.  
  42. public plugin_init()
  43. {
  44. register_plugin("TimeLeft", AMXX_VERSION_STR, "AMXX Dev Team")
  45. register_dictionary("timeleft.txt")
  46. register_cvar("amx_time_voice", "1")
  47. register_srvcmd("amx_time_display", "setDisplaying")
  48. register_cvar("amx_timeleft", "00:00", FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
  49. register_clcmd("say timeleft", "sayTimeLeft", 0, "- displays timeleft")
  50. register_clcmd("say thetime", "sayTheTime", 0, "- displays current time")
  51.  
  52. set_task(0.8, "timeRemain", 8648458, "", 0, "b")
  53. }
  54.  
  55. public sayTheTime(id)
  56. {
  57. if (get_cvar_num("amx_time_voice"))
  58. {
  59. new mhours[6], mmins[6], whours[32], wmins[32], wpm[6]
  60.  
  61. get_time("%H", mhours, 5)
  62. get_time("%M", mmins, 5)
  63.  
  64. new mins = str_to_num(mmins)
  65. new hrs = str_to_num(mhours)
  66.  
  67. if (mins)
  68. num_to_word(mins, wmins, 31)
  69. else
  70. wmins[0] = 0
  71.  
  72. if (hrs < 12)
  73. wpm = "am "
  74. else
  75. {
  76. if (hrs > 12) hrs -= 12
  77. wpm = "pm "
  78. }
  79.  
  80. if (hrs)
  81. num_to_word(hrs, whours, 31)
  82. else
  83. whours = "twelve "
  84.  
  85. client_cmd(id, "spk ^"fvox/time_is_now %s_period %s%s^"", whours, wmins, wpm)
  86. }
  87.  
  88. new nap[3], honap[32], ev[5], ora[7], perc[7], mp[7]
  89. get_time("%m", honap, 31)
  90. get_time("%d", nap, 2)
  91. get_time("%Y", ev, 4)
  92. get_time("%H", ora, 6)
  93. get_time("%M", perc, 6)
  94. get_time("%S", mp, 6)
  95.  
  96. new mins = str_to_num(perc)+2
  97. new hour = str_to_num(ora)
  98. new second = str_to_num(mp)
  99.  
  100. client_print(0, print_chat, "%L: %s/%s/%s - %d:%d:%d", LANG_PLAYER, "THE_TIME", honap, nap, ev,hour, mins, second)
  101.  
  102. return PLUGIN_CONTINUE
  103. }
  104.  
  105. public sayTimeLeft(id)
  106. {
  107. if (get_cvar_float("mp_timelimit"))
  108. {
  109. new a = get_timeleft()
  110.  
  111. if (get_cvar_num("amx_time_voice"))
  112. {
  113. new svoice[128]
  114. setTimeVoice(svoice, 127, 0, a)
  115. client_cmd(id, "%s", svoice)
  116. }
  117. client_print(0, print_chat, "%L: %d:%02d", LANG_PLAYER, "TIME_LEFT", (a / 60), (a % 60))
  118. }
  119. else
  120. client_print(0, print_chat, "%L", LANG_PLAYER, "NO_T_LIMIT")
  121.  
  122. return PLUGIN_CONTINUE
  123. }
  124.  
  125. setTimeText(text[], len, tmlf, id)
  126. {
  127. new secs = tmlf % 60
  128. new mins = tmlf / 60
  129.  
  130. if (secs == 0)
  131. format(text, len, "%d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE")
  132. else if (mins == 0)
  133. format(text, len, "%d %L", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
  134. else
  135. format(text, len, "%d %L %d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
  136. }
  137.  
  138. setTimeVoice(text[], len, flags, tmlf)
  139. {
  140. new temp[7][32]
  141. new secs = tmlf % 60
  142. new mins = tmlf / 60
  143.  
  144. for (new a = 0;a < 7;++a)
  145. temp[a][0] = 0
  146.  
  147. if (secs > 0)
  148. {
  149. num_to_word(secs, temp[4], 31)
  150.  
  151. if (!(flags & 8))
  152. temp[5] = "seconds " /* there is no "second" in default hl */
  153. }
  154.  
  155. if (mins > 59)
  156. {
  157. new hours = mins / 60
  158.  
  159. num_to_word(hours, temp[0], 31)
  160.  
  161. if (!(flags & 8))
  162. temp[1] = "hours "
  163.  
  164. mins = mins % 60
  165. }
  166.  
  167. if (mins > 0)
  168. {
  169. num_to_word(mins, temp[2], 31)
  170.  
  171. if (!(flags & 8))
  172. temp[3] = "minutes "
  173. }
  174.  
  175. if (!(flags & 4))
  176. temp[6] = "remaining "
  177.  
  178. return format(text, len, "spk ^"vox/%s%s%s%s%s%s%s^"", temp[0], temp[1], temp[2], temp[3], temp[4], temp[5], temp[6])
  179. }
  180.  
  181. findDispFormat(time)
  182. {
  183. for (new i = 0; g_TimeSet[i][0]; ++i)
  184. {
  185. if (g_TimeSet[i][1] & 16)
  186. {
  187. if (g_TimeSet[i][0] > time)
  188. {
  189. if (!g_Switch)
  190. {
  191. g_CountDown = g_Switch = time
  192. remove_task(8648458)
  193. set_task(1.0, "timeRemain", 34543, "", 0, "b")
  194. }
  195.  
  196. return i
  197. }
  198. }
  199. else if (g_TimeSet[i][0] == time)
  200. {
  201. return i
  202. }
  203. }
  204.  
  205. return -1
  206. }
  207.  
  208. public setDisplaying()
  209. {
  210. new arg[32], flags[32], num[32]
  211. new argc = read_argc() - 1
  212. new i = 0
  213.  
  214. while (i < argc && i < 32)
  215. {
  216. read_argv(i + 1, arg, 31)
  217. parse(arg, flags, 31, num, 31)
  218.  
  219. g_TimeSet[i][0] = str_to_num(num)
  220. g_TimeSet[i][1] = read_flags(flags)
  221.  
  222. i++
  223. }
  224. g_TimeSet[i][0] = 0
  225.  
  226. return PLUGIN_HANDLED
  227. }
  228.  
  229. public timeRemain(param[])
  230. {
  231. new gmtm = get_timeleft()
  232. new tmlf = g_Switch ? --g_CountDown : gmtm
  233. new stimel[12]
  234.  
  235. format(stimel, 11, "%02d:%02d", gmtm / 60, gmtm % 60)
  236. set_cvar_string("amx_timeleft", stimel)
  237.  
  238. if (g_Switch && gmtm > g_Switch)
  239. {
  240. remove_task(34543)
  241. g_Switch = 0
  242. set_task(0.8, "timeRemain", 8648458, "", 0, "b")
  243.  
  244. return
  245. }
  246.  
  247. if (tmlf > 0 && g_LastTime != tmlf)
  248. {
  249. g_LastTime = tmlf
  250. new tm_set = findDispFormat(tmlf)
  251.  
  252. if (tm_set != -1)
  253. {
  254. new flags = g_TimeSet[tm_set][1]
  255. new arg[128]
  256.  
  257. if (flags & 1)
  258. {
  259. new players[32], pnum
  260.  
  261. get_players(players, pnum, "c")
  262.  
  263. for (new i = 0; i < pnum; i++)
  264. {
  265. setTimeText(arg, 127, tmlf, players[i])
  266.  
  267. if (flags & 16)
  268. set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 1.1, 0.1, 0.5, -1)
  269. else
  270. set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 3.0, 0.0, 0.5, -1)
  271.  
  272. show_hudmessage(players[i], "%s", arg)
  273. }
  274. }
  275.  
  276. if (flags & 2)
  277. {
  278. setTimeVoice(arg, 127, flags, tmlf)
  279. client_cmd(0, "%s", arg)
  280. }
  281. }
  282. }
  283. }
  284.  

_________________
Kép

Ők köszönték meg CrB nek ezt a hozzászólást: Wezon (2014.05.31. 14:00)
  Népszerűség: 2.27%


Hozzászólás jelentése
Vissza a tetejére
   
 Hozzászólás témája: Re: Szerver time késik
HozzászólásElküldve: 2014.05.31. 14:06 
Offline
Lelkes

Csatlakozott: 2014.05.30. 21:39
Hozzászólások: 16
Megköszönt másnak: 3 alkalommal
EDIT:
Most már jó az óra, illetve hozzáadja a +2 percet, de a rosszat is írja így:

Az ido: 05/31/2014 - 16:21:58 (rossz)
Az ido: 05/31/2014 - 16:23:58 (jó)

Továbbá a plugintól a timeleftet is duplán írja így:

Hatralevo ido: 18:27
Hatralevo ido: 18:27

Illetve, még arra is rájöttem hogy a nextmapot alapból 2x írja a plugin nélkül is így:

A kovetkezo palya: de_dust2
A kovetkezo palya: de_dust2

Ezekre valaki tud megoldást?

Az utolsó kör plugin már mindig megy a galileo-val is.

Viszont a galileo mindig azt írja hogy:

A szavazas sikertelen; nem talalok palyakat.

Valaki esetleg tudja ezt hogy lehetne megcsinálni, illetve hogy hova kellene még beírni mapcycle-n kívül? (Lehet az a baj hogy egyedül vagyok fenn?)


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  [ 8 hozzászólás ] 


Ki van itt

Jelenlévő fórumozók: nincs regisztrált felhasználó valamint 49 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