04.10.2014, 08:38
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
new notclicked;
for(new x=0; x < MAX_TEAMS; x++)
{
if(clickedid != Teams[x]) notclicked = x;
if(clickedid == Teams[x])
{
if(TeamCount[x] > TeamCount[notclicked]) return SendClientMessage(playerid, RED, "This team is full.");
SetPlayerTeam(playerid, x);
return 0;
}
return 1;
}/