Since i don't want this i put this code on the AllowUserJoin function:
- Code: Select all
public override bool AllowUserJoin(Player player)
{
Console.WriteLine("This is player " + PlayerCount);
foreach (Player b in Players)
{
if (b.ConnectUserId == player.ConnectUserId)
{
Console.WriteLine("Dupe detected");
player.Send("Dupe");
return false;
}
}
}
In AS3 i created a handler for the Dupe message, alerting the user he is already connected, and it's working ok. Now the weird part : if i keep trying to connect, at the third attempt i get this message:
As you can see in the development server there is only 1 user connected, so how am i getting this 45 user limit message ?