OnPlayerMute: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server event}} This event is triggered when a player has been muted by setPlayerMuted. ==Parameters== ''none'' ==Cancel effect== If this event is [[Event system...")
 
No edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 4: Line 4:


==Parameters==
==Parameters==
''none''
No parameters.
 
==Source==
The source of this event is the player who got muted.


==Cancel effect==
==Cancel effect==
Line 11: Line 14:
==Example==  
==Example==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
-- TODO
function muted()
    outputChatBox(getPlayerName(source) .. " has been muted.", root, 255, 0, 0)
end
addEventHandler("onPlayerMute", root, muted)
</syntaxhighlight>
</syntaxhighlight>
{{See also/Server event|Player events}}
{{See also/Server event|Player events}}

Latest revision as of 03:01, 27 September 2018

This event is triggered when a player has been muted by setPlayerMuted.

Parameters

No parameters.

Source

The source of this event is the player who got muted.

Cancel effect

If this event is canceled, the player will not be muted.

Example

function muted()
    outputChatBox(getPlayerName(source) .. " has been muted.", root, 255, 0, 0)
end
addEventHandler("onPlayerMute", root, muted)

See Also

Player events


Event functions