31.05.2011, 20:43
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
if(Team1Count > Team2Count)
{
SendClientMessage(playerid, COLOR_RED, "Please, join the other team to balance the teams.");
GameTextForPlayer(playerid,"~r~RED ~w~TEAM",1000,5);
}
else if(classid == 1)
{
if(Team2Count > Team1Count)
{
GameTextForPlayer(playerid,"~b~BLUE ~w~TEAM",1000,5);
SendClientMessage(playerid, COLOR_RED, "Please, join the other team to balance the teams.");
}
}
}
return 1;
}