i wanna make function that count if there are 2 players axis and one 0 allies
if so make new round
i wanna make function that count if there are 2 players axis and one 0 allies
if so make new round
PHP Code:
calcNumOnTeam(team)
{
arrayteam = [];
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
{
if(isDefined(players[i].pers["team"]) && players[i].pers["team"] == team)
arrayteam[arrayteam.size] = players[i];
}
return arrayteam.size;
}
PHP Code:
if (calcNumOnTeam("axis") == 2 && calcNumOnTeam("allies") == 1)
{
// whatever
}
Last edited by voron00; 14th September 2016 at 19:17.
sudo apt-get rekt
thank you i love you last small help how to remove hud image from the screen of cod?
Find the hud, then disable it.
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem