What is the player key?

Started by ., Apr 01, 2015, 10:59 AM

Previous topic - Next topic

.

There's an function int the plugin API called GetPlayerKey(int). But to be honest I'm not sure what that is. I've just noticed it increases by 256 with every player that connects.
.

Stormeus

The key is just a unique identifier for a player who joins the server. maxorator knows much more about the specifics than I do, to me it doesn't seem to serve a purpose for scripters.

.

TBH I was thinking the same. What confused me was the fact that it increases by 256 with every player connection. So I wasn't really sure. I should probably ask maxorator but since I don't know him I'll probably leave it at that :D
.

Gudio

onPlayerJoin Message("There were " + player.Key / 256 + " players connected to this server.")

.

#4
Quote from: Gudio on Apr 01, 2015, 09:17 PMonPlayerJoin Message("There were " + player.Key / 256 + " players connected to this server.")

Obviously :-\ But I doubt that's what it is for.
.