11.11.2009, 18:49
Код:
static gTeam[MAX_PLAYERS]; new GrovePeople; #define GROVE 1 public OnPlayerRequestClass(playerid, classid) { if(gTeam[playerid] == GROVE) GrovePeople--; if(classid == changethistoagrovestreetskin) { if(GrovePeople > 3) { SendClientMessage(playerid, COLOR_RED, "You cannot join this team because it is too full."); return 0; } else { GrovePeople++; gTeam[playerid] = GROVE; return 1; } } return 1; }