Skip to content

GetPlayerTeam

The player’s team.

GetPlayerTeam(pid)
Parameter Type
pid number the player

number - the team; NO_TEAM (-1) when none

if GetPlayerTeam(a) == GetPlayerTeam(b) then SendClientMessage(a, COLOUR_RED, "That is your teammate.") end

SetPlayerTeam · the Players group of the index