Quote:
Originally Posted by Hitman-
How do you use this to allow an admin to pick from 3 maps and then the winning map will Set the next map (not immediately change)
|
I have seen this question serveral times here.
The answer is always the same:
Quote:
Originally Posted by chundo
Code:
"3mapvote"
{
"title" "Which map should be next?"
"type" "list"
"admin" "sm_admin"
"cmd" "sm_setnextmap #4"
"options"
{
"#1" "#1"
"#2" "#2"
"#3" "#3"
}
"params"
{
"1" "mapcycle"
"2" "mapcycle"
"3" "mapcycle"
}
}
|
Have you ever tried it? It is not working.
I think I found the problem.
First, it is using command sm_setnextmap that is not a default command of sourcemod. You have to load mapchooser plugin.
Second, after being able to run that command in console I tried the vote.
Here is my console output:
Code:
sm plugins load mapchooser
[SM] Loaded plugin mapchooser.smx successfully.
L 01/24/2009 - 13:17:37: [customvotes.smx] Deckard<4><STEAM_0:1:15603151><> initiated a changelevel vote
L 01/24/2009 - 13:17:38: [customvotes.smx] "SÃ*" (1) won with 100% of the vote (1 votes)
0 admins
sm_setnextmap
[SM] Usage: sm_setnextmap <map>
L 01/24/2009 - 13:18:38: [customvotes.smx] Deckard<4><STEAM_0:1:15603151><> initiated a setnextmapmulti vote
L 01/24/2009 - 13:18:41: [customvotes.smx] "dod_celes_b3" ("dod_celes_b3") won with 100% of the vote (1 votes)
L 01/24/2009 - 13:18:43: Team "Allies" triggered "tick_score" (score "3") (totalscore "3") (numplayers "0")
L 01/24/2009 - 13:18:44: [customvotes.smx] Executing "sm_setnextmap ""dod_celes_b3"""
CModelLoader::Map_IsValid: Empty mapname!!!
[SM] Mapa no encontrado.
sm_setnextmap "dod_celes_b3"
[SM] Siguiente mapa cambiado a "dod_celes_b3".
L 01/24/2009 - 13:19:37: [mapchooser.smx] "Console<0><Console><Console>" changed nextmap to "dod_celes_b3"
L 01/24/2009 - 13:19:37: server_cvar: "sm_nextmap" "dod_celes_b3"
L 01/24/2009 - 13:19:43: Team "Allies" triggered "tick_score" (score "3") (totalscore "6") (numplayers "0")
Your plugin is adding extra double quotes.
If I execute sm_setnextmap with simple double quotes it works.
You have an example using sm_setnextmap (changelevel vote) at first page. You should notice that mapchooser plugin is required.
Best regards,
Pablo.
__________________