Resource:Gang Manager/isPlayerLeader: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<section name="Server" class="server" show="true"> | <section name="Server" class="server" show="true"> | ||
<syntaxhighlight lang="lua">isPlayerLeader ( player Player )</syntaxhighlight> | <syntaxhighlight lang="lua">bool isPlayerLeader ( player Player )</syntaxhighlight> | ||
==Required Arguments== | ==Required Arguments== | ||
Line 10: | Line 10: | ||
</section> | </section> | ||
<section name="Client" class="client" show="true"> | <section name="Client" class="client" show="true"> | ||
<syntaxhighlight lang="lua">isPlayerLeader ( player Player )</syntaxhighlight> | <syntaxhighlight lang="lua">bool isPlayerLeader ( player Player )</syntaxhighlight> | ||
==Required Arguments== | ==Required Arguments== | ||
Line 17: | Line 17: | ||
==Returns== | ==Returns== | ||
*'''IsLeader:''' Boolean that is true if player is leader of his current gang and false otherwise |
Latest revision as of 23:25, 23 June 2014
Checks if player is leader of his current gang.
Syntax
Click to collapse [-]
Serverbool isPlayerLeader ( player Player )
Required Arguments
- Player: Player element who you want to check if he is the leader of his current gang
Click to collapse [-]
Clientbool isPlayerLeader ( player Player )
Required Arguments
- Player: Player element who you want to check if he is the leader of his current gang
Returns
- IsLeader: Boolean that is true if player is leader of his current gang and false otherwise