Console & players

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Speciecs8472
Lance Corporal
Posts: 14
Joined: Thu Mar 18, 2004 10:22 pm

Console & players

Post by Speciecs8472 »

Is $player[1] the same as player 0 when you type status in console?
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post by kai0ty »

well player numbers arent like client numbers. player numbers keep adding up. so if u join a server with one other person, he is player one, u reconnect, u'll be player 3, but client 2, so going by palyer number isnt very effective, client number is better. to answer ur question, yes it will be, but there wont always be a player zero.
There are only 10 kinds of people in this world; those who know what binary is, and those who don't.
Speciecs8472
Lance Corporal
Posts: 14
Joined: Thu Mar 18, 2004 10:22 pm

Console & players

Post by Speciecs8472 »

i understand, but what happends when say player 0 leaves.
would $player[2] be bumped to $player[1] ?

or would $player[2] stay $player[2] and $player[1] would wait for new player?
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post by kai0ty »

the player numbers are never reused. player2 stays player 2 and a new player is player 3.
There are only 10 kinds of people in this world; those who know what binary is, and those who don't.
Speciecs8472
Lance Corporal
Posts: 14
Joined: Thu Mar 18, 2004 10:22 pm

Post by Speciecs8472 »

so player no is always the same as client number?
Post Reply