Resource:Battlefield/setPlayerSquad

From Multi Theft Auto: Wiki
Revision as of 04:14, 22 May 2012 by Jaysds (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

This function sets the player squad.

Syntax

 bool setPlayerSquad(player thePlayer, squad squadTeam) 

Required Arguments

  • thePlayer: The player you wish to add to a squad.
  • squadTeam: The squad you want the player to be added to.

Returns

Returns true if the player was successfully added to the squad, else false.

Return to Battlefield Resource