AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Auto Game Restart with Countdown Timer (https://forums.alliedmods.net/showthread.php?t=85980)

AbeX 02-18-2009 19:02

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:

autorr_time 10.0 //game will be restarted in 10 seconds, default: 20.0 

TODO:
  • Sound playing every second (+ ability to change / disable)
  • Countdown with voice (+ ability to modify / disable)
  • CVAR to modify / disable countdown HUD message
  • CVAR to modify / disable "LIVE ! LIVE ! LIVE !" chat message
  • CVAR to choose between 1 and 3 restarts

Kont 02-19-2009 03:36

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

Kont 02-19-2009 04:12

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.

AbeX 02-19-2009 05:33

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.

Hawk552 02-22-2009 23:55

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.

AntiBots 02-23-2009 08:23

Re: Auto Game Restart with Countdown Timer
 
Any diference with this: http://forums.alliedmods.net/showthread.php?p=666779 ?

AbeX 02-23-2009 10:28

Re: Auto Game Restart with Countdown Timer
 
Quote:

Originally Posted by AntiBots (Post 767246)

Didn't found this plugin earlier. Okey, unapproved.

12345 02-24-2009 14:57

Re: Auto Game Restart with Countdown Timer
 
Plugin works fine! Running it on my server!

Hawk552 02-24-2009 15:14

Re: Auto Game Restart with Countdown Timer
 
Quote:

Originally Posted by AbeX (Post 767350)
Didn't found this plugin earlier. Okey, unapproved.

Done.


All times are GMT -4. The time now is 07:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.