joedajoester Posted January 6, 2012 Posted January 6, 2012 Hi I wanna edit the vote system so you can vote anything but how would I make it so I can get what the player types like /vote should I jump off this? And it would vote that.
Klesh Posted January 6, 2012 Posted January 6, 2012 (edited) For what type of gamemode you want edit that, also you edit it in-game with admin panel on settings. You can call a vote with /vote /votemode /votemap. Edited January 6, 2012 by Guest
joedajoester Posted January 6, 2012 Author Posted January 6, 2012 In scripting how would u get what's typed in the console along the command like /pm playerfgf hii
Castillo Posted January 6, 2012 Posted January 6, 2012 Hi I wanna edit the vote system so you can vote anything but how would I make it so I can get what the player types like /vote should I jump off this? And it would vote that. local pollDidStart = exports.votemanager:startPoll { title='My question', percentage=65, timeout=10, allowchange=true, visibleTo=getRootElement(), [1]={'Answer 1'}, [2]={'Answer 2'}, }
JR10 Posted January 6, 2012 Posted January 6, 2012 Like: addCommandHandler ( "vote" , function ( player , cmd , firstArgument ) --Read about addCommandHandler local pollDidStart = exports.votemanager:startPoll { title=firstArgument, percentage=65, timeout=10, allowchange=true, visibleTo=getRootElement(), [1]={'Answer 1'}, [2]={'Answer 2'} } end)
Mefisto_PL Posted January 6, 2012 Posted January 6, 2012 Hmm.. I replaced something in JR10 version and not working addCommandHandler ( "vote" , function ( player , cmd ) local pollDidStart = exports.votemanager:startPoll { title='Event', percentage=65, timeout=10, allowchange=true, visibleTo=getRootElement(), [1]={'WWK'}, [2]={'KSW'}, [3]={'CPW'), [4]={'Ganiany'}, } end)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now