if (strcmp(cmdtext,"/teamsinfo",true)==0) { new team1s; new team2s; new team3s; new team4s; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(spawned[i]) { if (GetPlayerTeam(i)==1) { team1s++; } if (GetPlayerTeam(i)==2) { team2s++; } if (GetPlayerTeam(i)==3) { team3s++; } if (GetPlayerTeam(i)==4) { team4s++; } } } } new txt[256]; format(txt,sizeof(txt),"There are %d [team name]'s spawned at the moment",team1s); SendClientMessage(playerid,COLOR_YELLOW,txt); format(txt,sizeof(txt),"There are %d [team name]'s spawned at the moment",team2s); SendClientMessage(playerid,COLOR_YELLOW,txt); format(txt,sizeof(txt),"There are %d [team name]'s spawned at the moment",team3s); SendClientMessage(playerid,COLOR_YELLOW,txt); format(txt,sizeof(txt),"There are %d [team name]'s spawned at the moment",team4s); SendClientMessage(playerid,COLOR_YELLOW,txt);}