IsPlayerMuted: Difference between revisions
Jump to navigation
Jump to search
Black Dragon (talk | contribs) No edit summary |
m (→See Also) |
||
(8 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server function}} | |||
Use this function to check if a player has been muted. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool isPlayerMuted ( player thePlayer )</syntaxhighlight> | <syntaxhighlight lang="lua">bool isPlayerMuted ( player thePlayer )</syntaxhighlight> | ||
{{OOP||[[player]]:isMuted|muted|setPlayerMuted}} | |||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''thePlayer:''' The [[player]] you are checking. | ||
===Returns=== | ===Returns=== | ||
Returns true if | Returns ''true'' if the player is muted and ''false'' otherwise. | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
outputChatBox ( "It seems Someguy can't speak | someguy = getPlayerFromName ( "someGuy" ) | ||
if isPlayerMuted ( someguy ) then | |||
outputChatBox ( "It seems Someguy can't speak." ) | |||
end | |||
</syntaxhighlight> | |||
==See Also== | |||
{{Player functions|server}} |
Latest revision as of 22:42, 6 September 2024
Use this function to check if a player has been muted.
Syntax
bool isPlayerMuted ( player thePlayer )
OOP Syntax Help! I don't understand this!
- Method: player:isMuted(...)
- Variable: .muted
- Counterpart: setPlayerMuted
Required Arguments
- thePlayer: The player you are checking.
Returns
Returns true if the player is muted and false otherwise.
Example
someguy = getPlayerFromName ( "someGuy" ) if isPlayerMuted ( someguy ) then outputChatBox ( "It seems Someguy can't speak." ) end
See Also
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerCount
- getPlayerIdleTime
- getPlayerIP
- getPlayerVersion
- getRandomPlayer
- isPlayerMuted
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerMuted
- setPlayerScriptDebugLevel
- setPlayerTeam
- setPlayerVoiceBroadcastTo
- setPlayerVoiceIgnoreFrom
- setPlayerWantedLevel
- spawnPlayer
- takePlayerScreenShot
- Shared
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState