IsPlayerMuted: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Syntax: OOP syntax added) |
||
Line 5: | Line 5: | ||
==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. | *'''thePlayer:''' The [[player]] you are checking. |
Revision as of 05:16, 15 July 2014
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
- 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