luck. Posted July 31, 2013 Share Posted July 31, 2013 Hi all well my doubt is, How can I edit this line to that smods mods and admins can give redo? Could not do it by acl addCommandHandler('redo', function( player, command, value ) if isPlayerInACLGroup(player, g_GameOptions.admingroup) or isPlayerInACLGroup(player, "Thieves of Soul") or isPlayerInACLGroup(player, "Old Members") then local currentMap = exports.mapmanager:getRunningGamemodeMap() if mapIsAlreadySet == false then if currentMap then outputChatBox("#8DB6CD[REDO] #FFFFFFMap restarted by " .. getPlayerNametagText(player), g_Root, 0, 240, 0, true) callClientFunction(getRootElement(),"removeDxCD") if not exports.mapmanager:changeGamemodeMap (currentMap, nil, true) then problemChangingMap() end else outputRace("You can't restart the map because no map is running", player) end else outputChatBox("#8DB6CD[REDO] #FFFFFFYou can't restart the map because next is set now.",player,255,255,255,true) end else outputRace("You are not an Admin", player) end end ) Link to comment
Castillo Posted July 31, 2013 Share Posted July 31, 2013 Set the setting on the race resource, name: "admingroup". 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