Template:Shared function: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Undo revision 58957 by Deihim007 (talk))
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Useful Function}}
<pageclass class="both" subcaption="Shared function"></pageclass>
{{Adding_Pages_to_Categories_and_Templates}}
<lowercasetitle></lowercasetitle>
<lowercasetitle></lowercasetitle>
__NOTOC__
<includeonly>[[Category:Server functions]][[Category:Client functions]]</includeonly>
This function check if the player in the team.
 
==Example==
<section name="Server" class="server" show="true">
This example check if the cop team.
<syntaxhighlight lang="lua">
createTeam( 'Cop', 255, 0, 0 )
 
addCommandHandler( 'InTeam',
function( aPlayer )
if isPlayerInTeam( aPlayer, 'Cop' ) then
outputChatBox( 'You\'re in cop team.', aPlayer )
else
outputChatBox( 'You\'re not in cop team.', aPlayer )
end
end
)
</syntaxhighlight>
</section>
 
Author(s): -
 
==See Also==
{{Useful_Functions}}

Revision as of 15:32, 7 September 2018