GetPlayerTeam

From NPC for VCMP 0.4 Servers
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.