10.11.2015, 13:46
create an enum with 2 variables, ip and players name.
When a player connects, get his/her ip address.
Now loop through the enum for that ip address, if it not found then loop through the enum for an empty slot, then set that empty slot with the players name and ip.
Simple and easy.
When a player connects, get his/her ip address.
Now loop through the enum for that ip address, if it not found then loop through the enum for an empty slot, then set that empty slot with the players name and ip.
Simple and easy.