Stranger Posted October 7, 2013 Share Posted October 7, 2013 hello guys, how can i make the moderator or the superModerator or the Admin, can not unmute someone ? Link to comment
-stolka- Posted October 7, 2013 Share Posted October 7, 2013 go in acl.xml and remove the rights... Link to comment
BieHDC Posted October 7, 2013 Share Posted October 7, 2013 dont remove! only set them to false instead of true Link to comment
Stranger Posted October 7, 2013 Author Share Posted October 7, 2013 i did put it false but nothing happens Link to comment
CocaColaBear Posted October 7, 2013 Share Posted October 7, 2013 i did put it false but nothing happens 1. Stop server; 2. Change acl.xml; 3. Start server. Link to comment
Stranger Posted October 7, 2013 Author Share Posted October 7, 2013 so i did stop the server and put it like that : "command.mute" access="true"> "command.unmute" access="false"> in every group but nothing happens Link to comment
.:HyPeX:. Posted October 7, 2013 Share Posted October 7, 2013 Remember Moderator uses Moderator ACL, SuperModerator uses Moderator and SuperModerator ACL, and admin uses the 3 group's ACLs.. Check if the other ones dont have also allowed mute. Link to comment
Stranger Posted October 7, 2013 Author Share Posted October 7, 2013 didn't work , you know what: i think there are script for it, but forget it, it's never gonna work, thank you guys. Link to comment
xXMADEXx Posted October 7, 2013 Share Posted October 7, 2013 didn't work , you know what:i think there are script for it, but forget it, it's never gonna work, thank you guys. Don't give up because you get frustrated. 1. stop server 2. put this into your ACL.xml <right name="command.mute" access="false"></right> <right name="command.unmute" access="false"></right> 3. start server Link to comment
Stranger Posted October 7, 2013 Author Share Posted October 7, 2013 didn't work , you know what:i think there are script for it, but forget it, it's never gonna work, thank you guys. Don't give up because you get frustrated. 1. stop server 2. put this into your ACL.xml <right name="command.mute" access="false"></right> <right name="command.unmute" access="false"></right> 3. start server but like that ,i can't mute someone or unmute someone, i want it can mute someone but can't unmuted Link to comment
.:HyPeX:. Posted October 8, 2013 Share Posted October 8, 2013 Thats not possible. the command mute alone mute and unmutes. you will have to use a custom command for that. function MutePlayer(player, victimName, command) if victimName then victimName = getPlayerName(victimName) if victim then if (not isPlayerMuted(victim)) then setPlayerMuted(victim, true) else outputChatBox("You have been muted by".. player .."", victim, 255, 0, 0) outputChatBox("".. victim .."is already muted!", source, 255, 0, 0) cancelEvent() end else outputChatBox("Could not find player with name: "..tostring(victimName),player, 255, 0, 0) end else outputChatBox("Usage: /m ",player, 255, 0, 0) addCommandHandler("m", MutePlayer) Link to comment
Stranger Posted October 8, 2013 Author Share Posted October 8, 2013 yes i know, but if he was a moderator, he can open the admin panel and unmute himself, and i don't want to use a custom command i want it to be in admin panel but it's impossible to do that Link to comment
Toffbrown Posted October 8, 2013 Share Posted October 8, 2013 Dont make someone a moderator if you have the need to Mute him simple as that Link to comment
3NAD Posted October 8, 2013 Share Posted October 8, 2013 admin/server/admin_server.lua find this line: if ( isPlayerMuted ( player ) ) then action = "un"..action end replace it: if ( isPlayerMuted ( player ) ) then return end Link to comment
Stranger Posted October 8, 2013 Author Share Posted October 8, 2013 admin/server/admin_server.luafind this line: if ( isPlayerMuted ( player ) ) then action = "un"..action end replace it: if ( isPlayerMuted ( player ) ) then return end thank you but this is for all groups i want it only console can unmute i tried to do this: if ( hasObjectPermissionTo ( player, "general.tab_resources" ) ) then but didn't work else if the time of mute end, the mute will not removed, this is a big problem so i have to put this if ( isPlayerMuted ( player ) ) then action = "un"..action end Link to comment
Al3grab Posted October 8, 2013 Share Posted October 8, 2013 local console = getElementByIndex("console", 0) if source and source ~= console then if isPlayerMuted ( player ) then if not ( hasObjectPermissionTo ( source, "command.aexec" ) ) then -- you can add a message here or something return end end end Add it after ( original file ) elseif ( action == "mute" ) then Link to comment
3NAD Posted October 8, 2013 Share Posted October 8, 2013 thank you but this is for all groups i want it only console can unmutei tried to do this: if ( hasObjectPermissionTo ( player, "general.tab_resources" ) ) then but didn't work else if the time of mute end, the mute will not removed, this is a big problem so i have to put this if ( isPlayerMuted ( player ) ) then if isObjectInACLGroup ( "user." .. getPlayerAccountName ( source ), aclGetGroup ( "Console" ) ) then action = "un"..action else return end end Link to comment
Stranger Posted October 8, 2013 Author Share Posted October 8, 2013 if ( isPlayerMuted ( player ) ) then if isObjectInACLGroup ( "user." .. getPlayerAccountName ( source ), aclGetGroup ( "Console" ) ) then action = "un"..action else return end end thank you so much 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