TimeLeft Extender (last round mapchange block)
3 Attachment(s)
TimeLeft Extender 1.2
Author: prodigy ([email protected]) A few words before: I know there are a few plugins "on the market" which do exactly the same, but I thought I'd write a more flexible plugin. Where you can choose the chattime etc. I also missed the timeleft announcement since it was only displaying "No Time Limit" when those plugins blocked the map change. These plugins were also missing the language choosing aspect. The name for this plugin was created when the first idea came up with increasing the time limit. I dropped that idea and kept the name. Purpose: This plugin removes the timelimit amx_tle_catchat seconds before mapchange and makes the round end after the current round, delaying the change for amx_tle_chattime seconds. When mapchange is blocked, typing timeleft displays that the current round is the last and prevents showing "No Time Limit" IF you put the plugin BEFORE timeleft.amxx in plugins.ini! CVars: Code:
amx_tle_enabled [1]/0 // Controls wether the plugin is enabled or not. (default 1)Code:
amx_changenow // Changes map immediatley to current amx_nextmapMethod 1:
Code:
[...]Code:
amx_time_display "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60"Screenshots: [IMG]http://img265.**************/img265/5742/deaztec0022px6.th.jpg[/IMG] The first chat message (the green one) comes from the blocking, the following is the answer to "say timeleft". Currently there are only [en] and [de] translations in the .txt file. I welcome any further translations and will add them. You would need to translate this into your language: Code:
[en]Code:
- Johnny got his gun @ http://forums.alliedmods.net/showthread.php?p=67909Timeformats are european (dd.mm.yyyy) and in 24h. Code:
1.2 (17.07.2007):I nearly forgot about it. By default ADMIN_MAP (flag f) access is required for the amx_changenow / say changenow commands. |
Re: TimeLeft Extender (TLE)
um....nice! Basically this is some kind of "extend_map" plugin?
|
Re: TimeLeft Extender (TLE)
Uhm, well if I know correctly the meaning of "extend_map" plugin.. yes it is.
It is mainly like those plugins with some extra features: http://forums.alliedmods.net/showthread.php?p=24826 http://forums.alliedmods.net/showthread.php?t=21870 It sets mp_timelimit to 0 amx_tle_catchat seconds before mapchange and waits for the round to end. But with some more features than just simply that. |
Re: TimeLeft Extender (TLE)
Gj!This is handy...+k :wink:
|
Re: TimeLeft Extender (TLE)
nice its like the regular timelimit but with more features! +Karma!
|
Re: TimeLeft Extender (TLE)
tested and runs great. Just use pcvars and this will be approved by a mod.
|
Re: TimeLeft Extender (TLE)
Should I use them only on my own cvars or the other cvars too?
Like amx_show_activity or mp_timelimit. Is it even possible to do so? This is my first plugin, I'm sorry about that. :P Updated with my own cvars as pcvars. |
Re: TimeLeft Extender (last round mapchange block)
The plugin is running, and works on my regular cs 1.6 server
But it seems that on my wc3ft server the plugin changes the map when somebody revives. Code:
; Map relatedCode:
[ 13] Nextmap Chooser 1.76d AMXX Dev Team mapchooser.amxx running |
Re: TimeLeft Extender (last round mapchange block)
The plugin works great, but I wonder if there is a posibility to add function like in Lastround v1.0. I mean play one more round when map time is ove or going to be over.
O! I have even better idea. How about to add sound from vox telling "This is the last round". I've checked and vox has sounds needed to do this. I have one problem. When the last round is very long then map is changing before round ends. What's wrong? |
Re: TimeLeft Extender (last round mapchange block)
Hmm, I'm going to check that some time.
I'm kind of busy right now, but I will check that. If someone else has any ideas you are welcome in fixing these issues. I will add them to the first post when I check back the next time. @WC3 Mod: It changes on any revive or only a specific (Warden, Item, etc.?) But I really don't know why it should change, if warcraft mod isn't triggering a roundend event it should not change. //edit: I got no problems running Warcraft 3 revives (Warden) with my addon. Demo: http://home.arcor.de/ts3k/csserv/no-bug.rar (Includes a good example of a situation that might occur that you can't avoid; Last round announcement / round end in nearly the same moment) Plugins Running: http://home.arcor.de/ts3k/csserv/plugins.ini @Long rounds: I'll set roundtime to 9 and then wait for the round end, checking that now too. //edit2: Got no problems with long rounds either. What plugins are you guys running, could you give me a full plugins.ini and where you got the plugins from (Which warcraft3 version? I'm running http://war3ft.net/ War3FT Mod 3.0 RC8 ) Demo: http://home.arcor.de/ts3k/csserv/longrounds.rar (nearly 10 minutes, have fun :D) |
Re: TimeLeft Extender (last round mapchange block)
It often changes map in a middle of a round, I don't know why...
I've fixed it :) Find line starting with "register_event" (should be line 107) And replace it with this: Code:
register_event("SendAudio","event_roundEnd","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw") |
Re: TimeLeft Extender (last round mapchange block)
Well it's line 110. But thanks.
I'll apply that patch and re-upload all the files. |
Re: TimeLeft Extender (last round mapchange block)
I changed it a little
Now it shows nextmap as well and when the last round ends it shows an info again and I set a 5.5 second stop to make players able to see the last man die. Here's the updated code: Code:
/*Code:
[en] |
Re: TimeLeft Extender (last round mapchange block)
slovak
Code:
[sk] |
Re: TimeLeft Extender (last round mapchange block)
Turkish
Code:
[tr] |
Re: TimeLeft Extender (last round mapchange block)
If the round passes 0.00 on my server, people respawn when they join. This is a major glitch for jailbreak servers that can go on for more than 10min.
|
Re: TimeLeft Extender (last round mapchange block)
Romanian translation:
Code:
[ro] |
Re: TimeLeft Extender (last round mapchange block)
Guys, sorry that I am posting this 13 years later, I am new in the plugins world and I have a problem with this one. Almost every map change when the last round is a bit longer (roundtime is set to 2 minutes) the server stucks and restarts itself and the voice that counts the last 10 secs is there as well.
Please help :) |
| All times are GMT -4. The time now is 08:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.