Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
How to make cs2d script, vote a map pressing F4
10 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
The second question should be asked in the Lua help thread.
![](img/smiles/bigsmile.gif)
Refresh has written
go to options and controls ![](img/smiles/bigsmile.gif)
![](img/smiles/bigsmile.gif)
crister_012 said:
Me need to make script no to put at Controls
![](img/smiles/bigsmile.gif)
The main hook you require is serveraction(id, title, button).
As for the menu it's 'menu(id, "title, id, b1,b2,b3...,b9").
I recommend adding @b to the end of the title (bigger menu).
And | Info after the end of the button. (Caption and sub-caption.)
You need to think about...
---> Same number of votes return?
---> No one votes return?
---> What maps are being selected?
---> How many maps are there to vote from?
Good luck, I already have a 5 vote map script, except it picks 5 random maps from cs2d/maps, and it's trigger on the 15th round and switches on 16th.
![](img/smiles/wink.gif)
![](img/smiles/cry.gif)
![IMG:https://www.forum-signatures.com/wizard/Sigs/2010/final1292671248175.jpg](https://www.forum-signatures.com/wizard/Sigs/2010/final1292671248175.jpg)
1
2
3
4
5
6
2
3
4
5
6
addhook("serveraction","rr_act") function rr_act(id,action) 	if action == 3 then 		menu(id,"Menu,1,2,3,4,5,6,7,8,9") 	end end
![](img/smiles/sadwink.gif)
edited 1×, last 18.12.10 08:32:49 pm
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)