joedajoester Posted January 6, 2012 Share 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. Link to comment
Klesh Posted January 6, 2012 Share 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 Link to comment
joedajoester Posted January 6, 2012 Author Share Posted January 6, 2012 In scripting how would u get what's typed in the console along the command like /pm playerfgf hii Link to comment
Klesh Posted January 6, 2012 Share Posted January 6, 2012 Do you mean that? outputConsole Link to comment
Castillo Posted January 6, 2012 Share 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'}, } Link to comment
JR10 Posted January 6, 2012 Share 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) Link to comment
Mefisto_PL Posted January 6, 2012 Share 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) Link to comment
JR10 Posted January 7, 2012 Share Posted January 7, 2012 What does it say in debugscript? Link to comment
Mefisto_PL Posted January 7, 2012 Share Posted January 7, 2012 Ohh I'm a stupid i fix that (Was {'CPW') ) Link to comment
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