01.06.2011, 09:27
Try this.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(GetPlayerSkin(playerid) == *) // Replace * with the skin you entered at the first AddPlayerClass
{
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(GetPlayerSkin(playerid) == *) // Replace * with the skin you entered at the second AddPlayerClass
{
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;
}