How to restrict the same player play against himself?

Options
Let's say there is a game for the Facebook, and in the game ppl can login without facebook id, and this game has leaderboard, so each player has some score in the leaderboard. So, if the same human being will open two tabs in its browser it will be able to play against itself => earn many scores for free.
Is there some mechanism that make this impossible?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @ChazAshley,

    Please remove comments from these two lines (1491 and 1492) from "LoadBalancingPeer.cs":
    public bool CheckUserOnJoin { get { return this.checkUserOnJoinField; } set { this.checkUserOnJoinField = value; } }
    private bool checkUserOnJoinField = false;
    And when you create rooms set roomOptions.CheckuserOnJoin = true;.

    Also you need to use unique UserID per player.

    Using this, a same user will not be able to join the same room from two different connections.
  • ChazAshley
    Options
    JohnTube said:

    Hi @ChazAshley,

    Please remove comments from these two lines (1491 and 1492) from "LoadBalancingPeer.cs":

    public bool CheckUserOnJoin { get { return this.checkUserOnJoinField; } set { this.checkUserOnJoinField = value; } }
    private bool checkUserOnJoinField = false;
    And when you create rooms set roomOptions.CheckuserOnJoin = true;.

    Also you need to use unique UserID per player.

    Using this, a same user will not be able to join the same room from two different connections.
    Thanx!