02.04.2014, 13:00
pawn Код:
static _count = 0 ;
for( new i = 0 ; i < MAX_PLAYERS ; i++ )
{
if( IsPlayerConnected( i ) && ( your_variable[ i ] == 1 ) )
_count++;
else continue;
}
if( _count > 4 )
{
// Atleast 5 people with the variable turned one.
}
else
{
// Nope
}