Set any id to each player connected?
Hello, set the id to each player connected? That is the first player to get connected to the server ID 1, and so on? If you set an id to each player how do I know?
|
Re: Set any id to each player connected?
What? Each player in the server has their own index starting from 1 and ending at 32.
|
Re: Set any id to each player connected?
Good, the number is set when you are connected to the server or connection before?
Code:
if(get_user_userid(id) == 1) |
Re: Set any id to each player connected?
I think when you're connected.
That don't work: PHP Code:
|
Re: Set any id to each player connected?
Quote:
Code:
This is not the same as a userid - A userid is incremented on each connect to the server. It's not an index into an edict list, like a player index (from 1-32). |
Re: Set any id to each player connected?
Quote:
|
Re: Set any id to each player connected?
I want a simple thing ... id 1 player to be sent directly to a team.
So: Code:
if(get_user_userid(id) == 1) |
Re: Set any id to each player connected?
Quote:
PHP Code:
|
Re: Set any id to each player connected?
userid is not reset on new map !
|
Re: Set any id to each player connected?
I was careful to Bugsy's explanation below with connections. So:
Code:
if(get_user_userid(id) == 1) |
| All times are GMT -4. The time now is 05:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.