IT/isPlayerMuted: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{IT/MainP}}
{{IT/Funzioni server client}}
__NOTOC__
__NOTOC__
{{IT/Funzioni server client}}
{{IT/MainP}}
Questa funzione verifica se un player è stato 'zittito', cioè se gli è impedito di inviare messaggi in chat.
Questa funzione verifica se un player è stato 'zittito', cioè se gli è impedito di inviare messaggi in chat.


==Sintassi==
==Sintassi==
<syntaxhighlight lang="lua">bool isPlayerMuted ( player thePlayer )</syntaxhighlight>
<syntaxhighlight lang="lua">bool isPlayerMuted ( player thePlayer )</syntaxhighlight>


===Argomenti richiesti===
===Argomenti richiesti===
*'''thePlayer:''' Il [[IT/player|player]] che vuoi controllare.
*'''thePlayer:''' Il [[IT/Elemento/Player|player]] che vuoi controllare.


===Valori restituiti===
===Valori restituiti===
Line 14: Line 14:


==Esempio==
==Esempio==
<section name="Server & client" class="server" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
tizio = getPlayerFromNick ( "Tizio" )
tizio = getPlayerFromNick ( "Tizio" )
Line 19: Line 20:
   outputChatBox ( "Tizio non può scrivere in chat." )
   outputChatBox ( "Tizio non può scrivere in chat." )
end</syntaxhighlight>
end</syntaxhighlight>
</section>


==Vedere anche==
==Vedere anche==
{{IT/Player_functions}}
{{IT/Player_functions}}

Latest revision as of 19:50, 13 June 2008

« Torna alla Pagina principale italiana .


Questa funzione verifica se un player è stato 'zittito', cioè se gli è impedito di inviare messaggi in chat.

Sintassi

bool isPlayerMuted ( player thePlayer )

Argomenti richiesti

  • thePlayer: Il player che vuoi controllare.

Valori restituiti

Restituisce true se il player è stato 'zittito', altrimenti false.

Esempio

Click to collapse [-]
Server & client
tizio = getPlayerFromNick ( "Tizio" )
if ( isPlayerMuted ( tizio ) then
   outputChatBox ( "Tizio non può scrivere in chat." )
end

Vedere anche