//In the top#define TEAM_ONE 1new gTeam[MAX_PLAYERS];//=====================//public OnPlayerSpawn(playerid){if(gTeam[playerid] == TEAM_ONE){//Your Function}return 1;}