SetPlayerMuted
Jump to navigation
Jump to search
Use this function to mute or unmute the player.
Syntax
bool setPlayerMuted ( player thePlayer, bool state )
Required Arguments
- thePlayer: The player you are muting or unmuting.
- state: Use true to mute and false to unmute the player.
Returns
Returns true if the player was successfully muted or unmuted, false otherwise.
Example
someguy = getPlayerFromNick ( "someGuy" ) if ( not isPlayerMuted ( someguy ) ) then setPlayerMuted ( someguy, true ) outputChatBox ( "You just got muted.", someguy ) 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