if(strcmp(cmdtext,"/team1", true)==0) { if(Player[playerid][pTeam] == 1) { player for team 1 return 1; } players no team 1. }