GetPlayerTeam

From SA-MP Wiki

Jump to: navigation, search

GetPlayerTeam


Find out what team a player is on.


Parameters:
(playerid)
playeridThe player you wan't to return the team of.


ReturnsThe team the player is on.


public OnPlayerSpawn(playerid)
{
    // Players who are in Team 1 should spawn at Las Venturas Airport.
    if(GetPlayerTeam(playerid) == 1) SetPlayerPos( playerid, 1667.8909, 1405.5618, 10.7801);
    return 1;
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.