Auto Game Restart with Countdown Timer
1 Attachment(s)
Auto Game Restart with Countdown Timer Version 1.0 Created by AbeX 19.02.2008 Features: Plugin restarts the game after the time in seconds you have choose. Also it shows HUD message with countdown timer in the center of screen. After restart the message "LIVE ! LIVE ! LIVE !" will appear in chat. Counting starts at game commencing. Installation: Put compiled plugin in the /plugins/ directory. Add line containing "auto_rr.amxx" into your plugins.ini file. Requirements: None (amxmodx) Configuration: Use autorr_time (float) CVAR in your amxx.cfg change the time after that game will be restarted. Example: PHP Code:
|
Re: Auto Game Restart with Countdown Timer
It is not working perfect. In the start of map, OK, it countdowns and restarts round. But the problem is: Assume that there is 2 players. They started play. When one is disconnected and another player is connected then it should be GAME COMMENCING again. Then it's countdowns and not restarts. But countdowns like -50 -51 -52 and so on and round will never restart. g_seconds should be equal to countdown second or something like this. ithink
|
Re: Auto Game Restart with Countdown Timer
I found the problem and fixed by myself. But it's not quite good way. I've inserted "if (g_Seconds < 20 || g_Seconds > 20) g_Seconds = 20" before set_task in the game_commencing section. Then it worked fine. Of course auto restart time always be 20 sec. I have to change manually if I had to change the value. But you should fix this in your good way. Mine is not clean and goodlooking one. Thanks I'm using this on my server.
|
Re: Auto Game Restart with Countdown Timer
1 Attachment(s)
I rewrote the plugin, now there is checking for started task and g_Seconds will be restored to CVAR every Game_Commencing.
Test it out. First post attached plugin updated too. Thanks for testing, Kont. |
Re: Auto Game Restart with Countdown Timer
This plugin needs testing. If anyone can report that it does or doesn't work, please post.
If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me. Approval pending on changes. |
Re: Auto Game Restart with Countdown Timer
Any diference with this: http://forums.alliedmods.net/showthread.php?p=666779 ?
|
Re: Auto Game Restart with Countdown Timer
Quote:
|
Re: Auto Game Restart with Countdown Timer
Plugin works fine! Running it on my server!
|
Re: Auto Game Restart with Countdown Timer
Quote:
|
All times are GMT -4. The time now is 07:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.