Stranger Posted October 7, 2013 Posted October 7, 2013 hello guys, how can i make the moderator or the superModerator or the Admin, can not unmute someone ?
BieHDC Posted October 7, 2013 Posted October 7, 2013 dont remove! only set them to false instead of true
CocaColaBear Posted October 7, 2013 Posted October 7, 2013 i did put it false but nothing happens 1. Stop server; 2. Change acl.xml; 3. Start server.
Stranger Posted October 7, 2013 Author 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
.:HyPeX:. Posted October 7, 2013 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.
Stranger Posted October 7, 2013 Author 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.
xXMADEXx Posted October 7, 2013 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
Stranger Posted October 7, 2013 Author 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
.:HyPeX:. Posted October 8, 2013 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)
Stranger Posted October 8, 2013 Author 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
Toffbrown Posted October 8, 2013 Posted October 8, 2013 Dont make someone a moderator if you have the need to Mute him simple as that
3NAD Posted October 8, 2013 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
Stranger Posted October 8, 2013 Author 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
Al3grab Posted October 8, 2013 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
3NAD Posted October 8, 2013 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
Stranger Posted October 8, 2013 Author 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
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