Resource:Gang Manager/setPlayerLevel: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server client function}} Sets player's level if the player is currently in a gang. ==Syntax== <section name="Server" class="server" show="true"> <syntaxhighlight lang="lua">setPlayerLevel...")
 
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">setPlayerLevel ( player Player, integer Level )</syntaxhighlight>
<syntaxhighlight lang="lua">bool setPlayerLevel ( player Player, integer Level )</syntaxhighlight>


==Required Arguments==
==Required Arguments==
Line 11: Line 11:
</section>
</section>
<section name="Client" class="client" show="true">
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">setPlayerLevel ( player Player, integer Level )</syntaxhighlight>
<syntaxhighlight lang="lua">bool setPlayerLevel ( player Player, integer Level )</syntaxhighlight>


==Required Arguments==
==Required Arguments==
Line 19: Line 19:


==Returns==
==Returns==
Returns ''true'' if player's level was successfully get or returns ''false'' otherwise.
*'''Success:''' Boolean that is true if the level was changed successfully or false otherwise

Latest revision as of 23:33, 23 June 2014

Sets player's level if the player is currently in a gang.

Syntax

Click to collapse [-]
Server
bool setPlayerLevel ( player Player, integer Level )

Required Arguments

  • Player: Player whose level you want to change
  • Level: Integer of the level you want to set as player's level from 1 to 5
Click to collapse [-]
Client
bool setPlayerLevel ( player Player, integer Level )

Required Arguments

  • Player: Player whose level you want to change
  • Level: Integer of the level you want to set as player's level from 1 to 5

Returns

  • Success: Boolean that is true if the level was changed successfully or false otherwise