GetPlayerTeam
The player’s team.
Syntax
Section titled “Syntax”GetPlayerTeam(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - the team; NO_TEAM (-1) when none
Example
Section titled “Example”if GetPlayerTeam(a) == GetPlayerTeam(b) then SendClientMessage(a, COLOUR_RED, "That is your teammate.") endSee also
Section titled “See also”SetPlayerTeam · the Players group of the index
