Thread: mapvote
View Single Post
zerak
Senior Member
Join Date: Feb 2008
Old 02-07-2008 , 19:02   Re: mapvote
Reply With Quote #10

1. I did? Where ?
If you refer to:
Code:
        // Why am I commented out? Because BAIL hasn't decided yet if
        // vote notification will be built into the Vote API.
        /*case MenuAction_Select:
        {
            decl String:Name[32], String:Map[32];
            GetClientName(param1, Name, sizeof(Name));
            GetMenuItem(menu, param2, Map, sizeof(Map));

            PrintToChatAll("[SM] %s has voted for map '%s'", Name, Map);
        }*/
then that isnt me, that is sourcemod's code

2. Give me an example, i thought it was kind of forgiving but sure you have to know what you are doing (look at the general and example in votemap.ini)
example:
Code:
    "de_nightfever"
    {
        "min"    "10"
        "max"    "20"
    }
really excited to know if it works (though i doubt it works flawless), maybe should have added some debugging outputs for it though :/
Also I should mention that it calculates the vote at the begining of the map and not right before vote time. The reason for this is sourcemod does this and it is easier to do a quick check/debug but i will look into this later, or now if you need it. Please add your criterias and suggestions and I find it odd that it crashes for you during mapvote.ini parsing.

Last edited by zerak; 02-08-2008 at 13:04.
zerak is offline