GamerDeMTA Posted February 17, 2013 Posted February 17, 2013 Someone knows the command to Stop a Votemap In a Race server?=
PaiN^ Posted February 17, 2013 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
tosfera Posted February 17, 2013 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"/>
GamerDeMTA Posted February 18, 2013 Author 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.
boro Posted February 18, 2013 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)
tosfera Posted February 18, 2013 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)
PaiN^ Posted February 18, 2013 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 ^^ ..
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