Ejemplo n.º 1
0
    public static void ResetBiggerIndex()
    {
        // Redefine the maximum number of players
        BiggerIndex = 0;

        for (byte i = (byte)Lists.Player.GetUpperBound(0); i >= 1; i -= 1)
        {
            if (Network.IsConnected(i))
            {
                BiggerIndex = i;
                break;
            }
        }

        // Send data to players
        Sending.BiggerIndex();
    }