How can i check how many people is at the team?
Look at the code:
PHP Code:
new anything = random_num(1,2);
new iPlayer[32], iNumCT, iNumTerr;
get_players(iPlayer, iNumCT, "a", "CT");
get_players(iPlayer, iNumTerr, "a", "TERRORISTS");
switch(anything) {
case 1:
{
if( iNumCT == 1 && iNumTerr == 1 ) {
// command
}
}
case 2:
{
if( iNumTerr == 5 && iNumCT == 1 ) {
// command
}
}
}
Why does this code dont work?
thanks