Resource:Gang Manager/getPlayerLevel: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server client function}} Gets player level from database. ==Syntax== <section name="Server" class="server" show="true"> <syntaxhighlight lang="lua">getPlayerLevel ( player Player )</syntaxhighlight>...")
 
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">getPlayerLevel ( player Player )</syntaxhighlight>
<syntaxhighlight lang="lua">int getPlayerLevel ( 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">getPlayerLevel ( player Player )</syntaxhighlight>
<syntaxhighlight lang="lua">int getPlayerLevel ( player Player )</syntaxhighlight>


==Required Arguments==
==Required Arguments==
Line 17: Line 17:


==Returns==
==Returns==
Returns level of the player's in his current gang or returns ''false'' otherwise.
*'''Level:''' Level of the player in the gang he is currently in

Latest revision as of 23:24, 23 June 2014

Gets player level from database.

Syntax

Click to collapse [-]
Server
int getPlayerLevel ( player Player )

Required Arguments

  • Player: Player element whose gang level you want to get
Click to collapse [-]
Client
int getPlayerLevel ( player Player )

Required Arguments

  • Player: Player element whose gang level you want to get

Returns

  • Level: Level of the player in the gang he is currently in