AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Question] id (https://forums.alliedmods.net/showthread.php?t=225487)

quark 09-05-2013 10:55

[Question] id
 
Hey guys, i have a question. The id from some player is the number in the server right? if server has 32 players each one has 1 number from 1 to 32 right? :3

YamiKaitou 09-05-2013 11:26

Re: [Question] id
 
id can be anything. The Player Index is between 1 and MaxPlayers

quark 09-05-2013 11:53

Re: [Question] id
 
right , so if i use like get_user_authid(1) it will get the steamID from the 1 player who entered?

YamiKaitou 09-05-2013 12:02

Re: [Question] id
 
It will obtain the authid of the user with Index 1. It might not be the first person who joined

quark 09-05-2013 12:21

Re: [Question] id
 
That's interesting.

SpaWn2KiLl 09-05-2013 17:16

Re: [Question] id
 
ID is the first number you see in the line of the player when you execute status in console...


# 1 "HLTV demos" 1909 HLTV hltv:0/12 delay:90 6:33:21 188.93.237.11:1351
# 2 "QUEENKILL" 2521 STEAM_0:1:47995213 20 08:41 39 0
# 3 "nM" 2537 STEAM_0:0:29147779 1 05:14 16 0
# 4 "askEN" 2519 STEAM_0:0:44354649 13 10:07 23 0

The ID of "HLTV demos" is 1
The ID of "QUEENKILL" is 2
The ID of "nM" is 3
The ID of "askEN" is 4

If player with ID 2 disconnects, the ID of players 3 and 4 will stay the same. The next player that joins the server will get the ID 2 (slot 2).

Hope you understand :D


All times are GMT -4. The time now is 19:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.