OnPlayerUnmute: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Server event}} This event is triggered when a player has been unmuted by setPlayerMuted. ==Parameters== ''none'' ==Cancel effect== If this event is [[Event syst...") |
No edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 4: | Line 4: | ||
==Parameters== | ==Parameters== | ||
No parameters. | |||
==Source== | |||
The source of this event is the player who got unmuted. | |||
==Cancel effect== | ==Cancel effect== | ||
If this event is [[Event system#Canceling|canceled]], the player will not be unmuted. | If this event is [[Event system#Canceling|canceled]], the player will not be unmuted. | ||
==Example== | ==Example== | ||
This example outputs to chatbox the player name who's unmuted. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function unmuted() | |||
outputChatBox(getPlayerName(source) .. " has been unmuted", root, 255, 0, 0) | |||
end | |||
addEventHandler("onPlayerUnmute", root, unmuted) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{See also/Server event|Player events}} | {{See also/Server event|Player events}} |
Latest revision as of 03:02, 27 September 2018
This event is triggered when a player has been unmuted by setPlayerMuted.
Parameters
No parameters.
Source
The source of this event is the player who got unmuted.
Cancel effect
If this event is canceled, the player will not be unmuted.
Example
This example outputs to chatbox the player name who's unmuted.
function unmuted() outputChatBox(getPlayerName(source) .. " has been unmuted", root, 255, 0, 0) end addEventHandler("onPlayerUnmute", root, unmuted)
See Also
Player events
- onPlayerACInfo
- onPlayerBan
- onPlayerChangeNick
- onPlayerChat
- onPlayerClick
- onPlayerCommand
- onPlayerConnect
- onPlayerContact
- onPlayerDamage
- onPlayerJoin
- onPlayerLogin
- onPlayerLogout
- onPlayerMarkerHit
- onPlayerMarkerLeave
- onPlayerModInfo
- onPlayerMute
- onPlayerNetworkStatus
- onPlayerPickupHit
- onPlayerPickupLeave
- onPlayerPickupUse
- onPlayerPrivateMessage
- onPlayerQuit
- onPlayerScreenShot
- onPlayerSpawn
- onPlayerStealthKill
- onPlayerTarget
- onPlayerUnmute
- onPlayerVehicleEnter
- onPlayerVehicleExit
- onPlayerVoiceStart
- onPlayerVoiceStop
- onPlayerWasted
- onPlayerWeaponFire
- onPlayerWeaponSwitch
Event functions
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled