1
menu(id,"Select map,bla,bla,bla,bla")
So:
Player1 pressed F4 . He voted for the map. He and all players never can press F4 again. (They can but doesnt do anything)
( I hope you understand me ! )
Thx in advance !
menu(id,"Select map,bla,bla,bla,bla")
pressed=false addhook("serveraction","_action") function _action(id,a) 	if pressed==false and a==3 then 		pressed=true 		--your code here 	end end
addhook("serveraction","vote") function vote(id,act) if act==3 then menu(id,"Vote For Map,Map1,Map2,Map3,Map4") end end addhook("menu","nowthemenu") function nowthemenu(id,title,buton) if title=="Vote" then if buton==1 then msg("©255255255"..player(id,"name").." Voted For Map1") freehook("serveraction","vote") end end end
addhook("serveraction","vote") function vote(id,act) if act==3 then menu(id,"Vote For Map,Map1,Map2,Map3,Map4") end end addhook("menu","nowthemenu") function nowthemenu(id,title,buton) if title=="Vote For Map" then if buton==1 then msg("©255255255"..player(id,"name").." Voted For Map1") freehook("serveraction","vote") elseif buton==2 then msg("©255255255"..player(id,"name").." Voted For Map2") freehook("serveraction","vote") elseif buton==3 then msg("©255255255"..player(id,"name").." Voted For Map3") freehook("serveraction","vote") elseif buton==4 then msg("©255255255"..player(id,"name").." Voted For Map4") freehook("serveraction","vote") end end end