Vote Map (5 Random) 
9 comments I made this for [LaG] Cortez (I don't know what he's planning to do).
It's a script that...picks 5 random maps from your cs2d/maps folder. And then allows players to vote on it.
15 rounds for a map. Voting on 15, and switching on 16. (You can edit this setting)
I hope you guys learn a lot from this script.
I'm using os.execute so if you are using ubuntu you need to change the command (I added it, just un-comment, and comment windows os.execute).
roundvote=15 (change it! :D)
Also make sure you have 5 maps in your cs2d/maps folder.
If you do not have 5 maps, the server will loop crash.
It's a script that...picks 5 random maps from your cs2d/maps folder. And then allows players to vote on it.
15 rounds for a map. Voting on 15, and switching on 16. (You can edit this setting)
I hope you guys learn a lot from this script.
I'm using os.execute so if you are using ubuntu you need to change the command (I added it, just un-comment, and comment windows os.execute).
roundvote=15 (change it! :D)
Also make sure you have 5 maps in your cs2d/maps folder.
If you do not have 5 maps, the server will loop crash.

edited 1×, last 16.12.10 08:24:04 am

There are already files in the archive which have a similar content.
Please create files which are more different from existing ones.
Use the description to explain us the advantages of your version.
Comments
9 comments



Log in!
You need to log in to be able to write comments!Log in
@
Kantos: lol
If you didn't notice already, the uploader is banned. That means he won't be able to upload screens shots.

If you didn't notice already, the uploader is banned. That means he won't be able to upload screens shots.
--ATTENTION: If you are running windows use this (also change dir if required)
os.execute("dir \"D:/CS2D/maps\"" .. " > tmpmap")
--ATTENTION: If you are running an unix based os use this
--os.execute("ls -a1 \"D:/CS2D/maps\"" .. " > tmpmap")
You need to change it if your os is unix-based.
Also change the map directory.
Edit:
I could have used console command 'maps', but at that time I didn't realize there was such a command.
os.execute("dir \"D:/CS2D/maps\"" .. " > tmpmap")
--ATTENTION: If you are running an unix based os use this
--os.execute("ls -a1 \"D:/CS2D/maps\"" .. " > tmpmap")
You need to change it if your os is unix-based.
Also change the map directory.
Edit:
I could have used console command 'maps', but at that time I didn't realize there was such a command.
edited 1×, last 19.12.10 01:19:57 am
Nice script... Useful
EDIT: WTF not work T_T (error on 26 string)

EDIT: WTF not work T_T (error on 26 string)
edited 2×, last 16.12.10 03:30:02 pm



