Jump to content

Question


luck.

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...