IsPlayerMuted: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Black Dragon (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
==Description== | ==Description== | ||
This function returns | This function returns true if a player has been muted and false otherwise. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool isPlayerMuted ( player thePlayer )</syntaxhighlight> | |||
bool | |||
===Required Arguments=== | ===Required Arguments=== | ||
*'''player''': The [[player]] you are checking. | |||
===Returns=== | |||
Returns true if a player has been muted and false otherwise. | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">if ( isPlayerMuted ( findPlayer ( "someGuy" ) ) then | |||
outputChatBox ( "It seems Someguy can't speak to you.", player ) | |||
end | end</syntaxhighlight> |
Revision as of 17:15, 18 May 2006
Description
This function returns true if a player has been muted and false otherwise.
Syntax
bool isPlayerMuted ( player thePlayer )
Required Arguments
- player: The player you are checking.
Returns
Returns true if a player has been muted and false otherwise.
Example
if ( isPlayerMuted ( findPlayer ( "someGuy" ) ) then outputChatBox ( "It seems Someguy can't speak to you.", player ) end