Set the team of a player.
|playerid||The ID of the player you want to set the team of.|
|teamid||The team to put the player in. Use NO_TEAM to remove the player from any team.|
This function does not return any specific values.
Players can not damage/kill players on the same team unless they use a knife to slit their throat. As of SA-MP 0.3x, players are also unable to damage vehicles driven by a player from the same team. This can be enabled with EnableVehicleFriendlyFire. 255 (or NO_TEAM) is the default team to be able to shoot other players, not 0.