Jump to content

Reasons


1LoL1

Recommended Posts

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

Link to comment
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 ..

Link to comment

I need it to be either through the admin panel or the following "/mute LoL 60 spam"

"LoL has been muted by LoL (60 sec) (spam)

and this is also the need to kick/ban so please someone to do it for nothing.

The linked topic os what you need.. :roll: just read it.

Also there is already mute command in admin resource, there should be no need to create your own.

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