Hi, so finally after some work and research i achieved to be able to play 1 vs 1 by internet with the game, now i am adding more players, i would like to make up to 6 or 10,
so i am using the client numbers to distiguish between the clients, and i can/want to have only a limited number of clients . So when the client connects to the server, generates a client name, (2), ok,
but then when i disconnect the client, i use getclientdisconnected(2) from the reserver to remove the sprite and it works. The sprite of the client gets removed from the server screen.
The problem, is when i try to connect again with the client, then it generates a new number (3) and so on every time that i reconnect.
I would like that, when a client is disconected, that client slot gets available again and the next client that connects re-uses that client number.
How could that be done?
There's any example of a multiplayer with more than 2 players...?
Thanks