mapvote 1.0.2

Added the possibility to have no maps at all in the mapvote_maps dvar.
This is useful for when you want to organise your maps dvar and you don't want any MW3 map for example
This commit is contained in:
Resxt
2022-12-23 11:22:52 +01:00
parent 809c62399f
commit 12fbe10be8
2 changed files with 13 additions and 2 deletions

View File

@ -79,7 +79,14 @@ InitVariables()
foreach (mapDvar in StrTok(GetDvar("mapvote_additional_maps_dvars"), ":"))
{
mapsString = mapsString + ":" + GetDvar(mapDvar);
if (mapsString == " ")
{
mapsString = GetDvar(mapDvar);
}
else
{
mapsString = mapsString + ":" + GetDvar(mapDvar);
}
}
mapsArray = StrTok(mapsString, ":");