Template:Shared function: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Blanked the page)
Line 1: Line 1:
{{Useful Function}}
{{Adding_Pages_to_Categories_and_Templates}}
<lowercasetitle></lowercasetitle>
__NOTOC__
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 21:33, 6 January 2013