Random Player
#4

pawn Code:
new randomsize = [MAX_PLAYERS];
new randomnumber = random(sizeof(randomsize));

for(new i = 0; i < [MAX_PLAYERS]);
{
       if( randomnumber == playerid(i))
       {
                // Your teamswitching code...
                return 1;
        }
        else
        {
            i++;
         }
         return 1;
}
Copy + paste might not work as I just wrote what came up to me, but the idea is simple.
Reply


Messages In This Thread
Random Player - by sanrock - 21.06.2012, 15:15
Re: Random Player - by ReneG - 21.06.2012, 15:24
Re: Random Player - by MadeMan - 21.06.2012, 15:28
Re: Random Player - by judothijs - 21.06.2012, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)