From SA-MP Wiki

Jump to: navigation, search


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.

teamsNumber of teams the gamemode knows.

Return Values:

This function does not return any specific values.

public OnGameModeInit( )
    // We use 18 teams in this use Team-Deathmatch mode, define it;
    SetTeamCount( 18 );
    return 1;

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
In other languages