IsPlayerMuted: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server function}}
Use this function to check if a player has been muted.
Use this function to check if a player has been muted.



Revision as of 18:48, 4 August 2009

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