GamerDeMTA Posted February 17, 2013 Share Posted February 17, 2013 Someone knows the command to Stop a Votemap In a Race server?= Link to comment
PaiN^ Posted February 17, 2013 Share Posted February 17, 2013 You can stop it from the Admin Panel, Go to the Resources tap, Then search for a resource called [ votemanger ], And then double click on it, Modify settings like you wish, And it shall work .. ;D Link to comment
tosfera Posted February 17, 2013 Share Posted February 17, 2013 Best thing to do is, go to yourmtaserver.conf file (located in; server/mods/deathmatch/). Scroll down to the bottom of the file and remove the line that says: "votemanager" startup="1" protected="0"/> Link to comment
GamerDeMTA Posted February 18, 2013 Author Share Posted February 18, 2013 But There Aren't Any Way To Stop It in a Game? I don't want to remove the votemanager or make votemap for admin, only command for stop it in the game, when we are playing. Link to comment
boro Posted February 18, 2013 Share Posted February 18, 2013 use this addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "votemap" then outputChatBox ( "INFO: Comand votemap is disabled", source, 255, 69, 0 ) cancelEvent() end end) Link to comment
tosfera Posted February 18, 2013 Share Posted February 18, 2013 use this addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "votemap" then outputChatBox ( "INFO: Comand votemap is disabled", source, 255, 69, 0 ) cancelEvent() end end) With this setup, I've created a command you might like too; addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "votemap" then local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account name if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) -- if he isn't an admin outputChatBox ( "INFO: Comand votemap is disabled for normal players, please ask and admin to start a vote.", source, 255, 69, 0 ) cancelEvent() end end end) Link to comment
PaiN^ Posted February 18, 2013 Share Posted February 18, 2013 addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "votemap" then local accName = getAccountName ( getPlayerAccount ( source ) ) -- get his account name if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- if he isn't an admin outputChatBox ( "INFO: Comand votemap is disabled for normal players, please ask and admin to start a vote.", source, 255, 69, 0 ) cancelEvent() end end end) Was missing a then at line 5 ^^ .. 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