View Single Post
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 09-20-2012 , 21:47   Re: [CS:S] Roundtime Extender (Version 1.0.1)
Reply With Quote #6

Quote:
Originally Posted by Fearts View Post
Added plugin + .cfg to the server. Set the mp_roundtime to 1 in server.cfg.

Contents of the .cfg:

Code:
"RoundtimeExtender"
{
    "config"
    {
        "maxplayers"    "1" // If there are <= 5 players alive at round end, don't change the roundtime
        "extendseconds"    "20"
    }
}
^I assume this would make it extend the round timer if there are 2 or more people alive on the server.

I reset the server and asked a friend to join. We waited the 60 seconds and the round ended no extension.

Did I do something wrong?
The "maxplayers" "x" key should be read as "number of players less or equal to x" -> that section is executed, if there are maximal x players alive at the end of the round and there is no lower "maxplayers" setting already catching that number of players.

Your config extends the round for 20 seconds if there is only 1 player left alive at the end of the round.

If you want it to extend if there are 2 or more people alive you would need to do

Code:
"RoundtimeExtender"
{
    "config"
    {
        "maxplayers"    "1" // If there is only 1 player alive at round end, don't change the roundtime
        "extendseconds"    "0"
    }
    "config"
    {
        "maxplayers"    "100" // If there are 2 to 100 (bogus value higher than maxplayers..) players alive, extend by 20 seconds.
        "extendseconds"    "20"
    }
}
__________________
Peace-Maker is offline