Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: . on Apr 01, 2015, 10:59 AM

Title: What is the player key?
Post by: . on Apr 01, 2015, 10:59 AM
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.
Title: Re: What is the player key?
Post by: Stormeus on Apr 01, 2015, 11:24 AM
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.
Title: Re: What is the player key?
Post by: . on Apr 01, 2015, 11:29 AM
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
Title: Re: What is the player key?
Post by: Gudio on Apr 01, 2015, 09:17 PM
onPlayerJoin Message("There were " + player.Key / 256 + " players connected to this server.")
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fimg.vc-mp.pl%2Fimages%2FYctNjGa.png&hash=0ce35a3fdb186b468d7a2b006c6d623c068862a3)
Title: Re: What is the player key?
Post by: . on Apr 02, 2015, 04:35 AM
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.