SetPlayerTeam
#4

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
pawn Код:
for(new i = 0 ; i < MAX_PLAYERS; i ++ )
{
     if( IsPlayerConnected( i ) )
     {
         if( i % 2 == 0 ) // Number is not odd == it is EVEN AND % operator returns remainder.
         {
               SetPlayerTeam( i , 1 );
               continue;
         }
         else SetPlayerTeam( i , 2 );
     }
}
Nice, but where would this go? And it would check all id's? All even numbers to infinity?
Reply


Messages In This Thread
SetPlayerTeam - by cray1100 - 05.08.2013, 04:24
Re: SetPlayerTeam - by SwisherSweet - 05.08.2013, 04:25
Re: SetPlayerTeam - by RajatPawar - 05.08.2013, 04:28
Re: SetPlayerTeam - by cray1100 - 05.08.2013, 04:31
Re: SetPlayerTeam - by Edix - 05.08.2013, 05:01

Forum Jump:


Users browsing this thread: 1 Guest(s)