Block a player from rejoining after he has dicconected

Options
Is there anyway i can block player from rejoining after they have disconected

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited October 2017
    Options
    Hi @sandy410,

    Thank you for choosing Photon!

    Take a look at this discussion here, it may contain what you need.

    If not, answer the following questions:

    How do you create room? What PlayerTTL do you use?
    What do you meant by "disconnect" and "block"?
  • sandy410
    Options
    I didnt use any playerTTL during creating room.
    I dont want a player that has disconnect while game is going on to rejoin the same game session again.
    So how do i prevent doing this

    Thanks
  • sandy410
    sandy410
    edited October 2017
    Options
    Is there anyway i can block players from joining after certain time Or
    Anyway player score doesnt get reset if he joins back
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited November 2017
    Options
    Is there anyway i can block players from joining after certain time
    That's what PlayerTTL does.
    Anyway player score doesnt get reset if he joins back
    This is possible if you rejoin the room with the same UserId. But I think PUN is still missing an explicit LeaveRoom(true).
  • sandy410
    Options
    JohnTube said:

    Is there anyway i can block players from joining after certain time
    That's what PlayerTTL does.
    Anyway player score doesnt get reset if he joins back
    This is possible if you rejoin the room with the same UserId. But I think PUN is still missing an explicit LeaveRoom(true).
    I tried playerttl but heres problem. If my char disconnects it still in my game and it doesnt get disconected from server