IsPlayerMuted: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
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.
Line 14: Line 14:
==Example==
==Example==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
someguy = getPlayerFromNick ( "someGuy" )
someguy = getPlayerFromName ( "someGuy" )
if isPlayerMuted ( someguy ) then
if isPlayerMuted ( someguy ) then
   outputChatBox ( "It seems Someguy can't speak." )
   outputChatBox ( "It seems Someguy can't speak." )
Line 21: Line 21:


==See Also==
==See Also==
{{Player functions}}
{{Player functions|server}}

Latest revision as of 22:42, 6 September 2024