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

Posted

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.

Lua Scripter

?ucet=miki_cz

Owner of mshost.cz MTA portal.

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