wenn es nur 2 teams giebt, dann man anstatt Team_Blue ein else
also:
if (strcmp("/ctb", cmdtext, true, 10) == 0)
{
IsInCTB[playerid]=1;
SendClientMessage(playerid,COLOR_YELLOW,"Willkommen im Capture the Boat.");
gTeam[playerid] = random(1) +1;
if(gTeam[playerid] == TEAM_GREEN)
{
SetPlayerPos(playerid,1980.0054,-266.6487,2.9653);
InGreenTeam[playerid] = 1;
}
else
{
SetPlayerPos(playerid,2359.2703,540.5911,1.7969);
InBlueTeam[playerid] = 1;
}
TextDrawShowForPlayer(playerid,CTBDRAW);
return 1;
}