note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
SetTeamCount
Description
This function is used to change the amount of teams used in the gamemode. It has no obvious way of being used, but can help to indicate the number of teams used for better (more effective) internal handling. This function should only be used in the OnGameModeInit callback. Important: You can pass 2 billion here if you like, this function has no effect at all.
Name | Description |
---|---|
count | Number of teams the gamemode knows. |
Returns
This function does not return any specific values.
Examples
public OnGameModeInit( )
{
// We use 18 teams in this use Team-Deathmatch mode, define it;
SetTeamCount(18);
return 1;
}
Related Functions
- GetPlayerTeam: Check what team a player is on.
- SetPlayerTeam: Set a player's team.