Jump to content

Reasons


1LoL1

Recommended Posts

Posted

Well, if you want kick/ban, do it in admin panel and there you are able to type reason.

If you want mute's reason you have to do your own command.

Posted
Well, if you want kick/ban, do it in admin panel and there you are able to type reason.

If you want mute's reason you have to do your own command.

I think / mute LoL - LoL has been muted by LoL (for reason)

Posted

Maybe /mute LoL reason.

If so, there is an example

addCommandHandler ( "mute", 
    function ( player, cmd, name, ... ) 
        local playerElement = getPlayerFromName ( name ) 
        if not isElement ( playerElement ) then return end 
        local text = table.concat ( {...}, " " ) 
        if text == "" then return end 
         
        setPlayerMuted ( playerElement, true ) 
        outputChatBox ( name.." has been muted, reason: (" .. text ..")." ) 
    end 
) 

/mute LoL flaming

And then chatbox will output

LoL has been muted, reason: (flaming).

Posted
Maybe /mute LoL reason.

If so, there is an example

addCommandHandler ( "mute", 
    function ( player, cmd, name, ... ) 
        local playerElement = getPlayerFromName ( name ) 
        if not isElement ( playerElement ) then return end 
        local text = table.concat ( {...}, " " ) 
        if text == "" then return end 
         
        setPlayerMuted ( playerElement, true ) 
        outputChatBox ( name.." has been muted, reason: (" .. text ..")." ) 
    end 
) 

/mute LoL flaming

And then chatbox will output

LoL has been muted, reason: (flaming).

This can give me always through the admin panel .. no reason ..

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...