IsPlayerMuted: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
someguy = getPlayerFromNick ( "someGuy" ) | someguy = getPlayerFromNick ( "someGuy" ) | ||
if | if isPlayerMuted ( someguy ) then | ||
outputChatBox ( "It seems Someguy can't speak." ) | outputChatBox ( "It seems Someguy can't speak." ) | ||
end</syntaxhighlight> | end | ||
</syntaxhighlight> | |||
==See Also== | ==See Also== | ||
{{Player functions}} | {{Player functions}} |
Revision as of 18:21, 7 December 2008
Use this function to check if a player has been muted.
Syntax
bool isPlayerMuted ( player thePlayer )
Required Arguments
- thePlayer: The player you are checking.
Returns
Returns true if the player is muted and false otherwise.
Example
someguy = getPlayerFromNick ( "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