Blockland Forums > Modification Help
Does every client have a number?
Reinforcements:
I'm trying to create a mod, and I need some way of the clients having their own numbers. When a client joins a server, if they're the 2nd one to connect, do they get their own "client number" set to 2 or something? Or if they're the 3rd one to connect, do they get a client number set to 3? Does this already exist? Or do I need to find some other way to do this?
thanks,
Reinforcements
Chrono:
Use BL_ID, because the only number they get is their object number and group number.
Object number does not save.
Group number will go lower if someone left who joined before them.
ThinkInvisible:
Actually, i think there's something like a client number in the client-sided recieve chat message command. %a variable (%a,%b,%c,%fmsg, ETC.)
A friend said that %a is the client - but it always returns a number for some reason.
he also said %b and %c were empty.
DYLANzzz:
Or you could give each object a spot in an array and their index is their number.
Or you could give them a variable attached to thier object when they connect
Reinforcements:
--- Quote from: Chrono on September 06, 2010, 11:03:27 AM ---Group number will go lower if someone left who joined before them.
--- End quote ---
Thats fine, I think thats the kinda of thing I'm looking for. So with this "group number" thing, every client has a number, the host would have 0, and the next person to join would have 1. Correct?