Player loops
#7

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
}
Reply


Messages In This Thread
Player loops - by Garr - 01.04.2014, 05:06
Re: Player loops - by Sascha - 01.04.2014, 08:04
Re: Player loops - by Garr - 02.04.2014, 04:22
Re: Player loops - by Polki - 02.04.2014, 05:15
Re: Player loops - by Garr - 02.04.2014, 05:33
Re: Player loops - by SickAttack - 02.04.2014, 05:46
Re: Player loops - by RajatPawar - 02.04.2014, 13:00
Re: Player loops - by BroZeus - 02.04.2014, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)