• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Random Player
#2
Code:
stock GetRandomPlayer()
{
    new randomPlayer = INVALID_PLAYER_ID;
    do
    {
        randomPlayer = random(GetPlayerPoolSize()  1);
    }
    while (!IsPlayerConnected(randomPlayer));

    return randomPlayer;
}
and call GetRandomPlayer(); where you have to
  Reply


Messages In This Thread
Random Player - by Lord_Bukake - 2021-02-23, 04:42 PM
RE: Random Player - by destiezk - 2021-02-23, 05:24 PM
RE: Random Player - by Radical - 2021-02-23, 08:15 PM
RE: Random Player - by Lord_Bukake - 2021-02-24, 04:47 PM

Forum Jump: