21.09.2011, 13:46
Please tell me how to make team balance for two teams. only
public OnPlayerRequestClass(playerid,classid)
{
SetPlayerPos(playerid, 1380.6447,-1753.0427,13.5469);
SetPlayerFacingAngle(playerid, 269.6420);
SetPlayerCameraPos(playerid, 1387.2906,-1752.8887,13.3828);
SetPlayerCameraLookAt(playerid, 1380.6447,-1753.0427,13.5469);
TextDrawShowForPlayer(playerid, CBox);
TextDrawShowForPlayer(playerid, CBox2);
TextDrawShowForPlayer(playerid, InfoC);
TextDrawShowForPlayer(playerid, SkinC);
if(classid == 0)
{
//GameTextForPlayer(playerid,"~b~Human ~n~~w~ Powers: None",5000,4);
TextDrawHideForPlayer(playerid,SkinC);
TextDrawShowForPlayer(playerid,SkinC);
TextDrawSetString(SkinC,"Human");
PlayerTeam[playerid] = 0;
SetPlayerTeam(playerid,0);
}
else if(classid == 1)
{
//GameTextForPlayer(playerid,"~r~Zombie ~n~~w~ Powers: Infection Virus",5000,4);
TextDrawHideForPlayer(playerid,SkinC);
TextDrawShowForPlayer(playerid,SkinC);
TextDrawSetString(SkinC,"Zombie");
PlayerTeam[playerid] = 1;
SetPlayerTeam(playerid,1);
}
return 1;
}