GetPlayerTeam

From NPC for VCMP 0.4 Servers
Revision as of 08:21, 23 December 2022 by Habi (talk | contribs) (Created page with "{{Welcome| desc=This will return the team of the specified player| params=<syntaxhighlight lang="lua">( playerId)</syntaxhighlight> <poem>::playerId: The ID of the player whos...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
This will return the team of the specified player


Parameters:

( playerId)

playerId: The ID of the player whose team is to be obtained.


Return Values:
-1, if the player is not connected. Otherwise returns the teamId of the player.


Example

if(IsPlayerStreamedIn(playerId))
{
	print( "Player ID: "+playerId+" Team: "+GetPlayerTeam( playerId ) +"\n" );
}

Related Functions

The following functions may be helpful as they relate to this function in one way or another.