15.06.2010, 04:28
Try using this instead of your current 'GetRemainingMembers(teamid)'
pawn Код:
stock GetRemainingMembers(teamid)
{
new tCount;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(GetPlayerTeam(i) == teamid && GetPVarInt(i, "Dead") == 0)
{
tCount++;
continue;
}
}
return tCount;
}