AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   client_connect & client_putinserver (https://forums.alliedmods.net/showthread.php?t=194451)

GhostMan 08-28-2012 14:39

client_connect & client_putinserver
 
Whats the difference?

Torge 08-28-2012 15:03

Re: client_connect & client_putinserver
 
client_connect: If someone is connecting to the server.
client_putinserver: If someone see the motd of server. He's already joined.

YamiKaitou 08-28-2012 15:33

Re: client_connect & client_putinserver
 
client_connect is called when the client connects to the server
client_putinserver is called a second or 2 before he sees the MOTD and is fully in
client_authorized is called when the client has gotten a SteamID

1 will always be first, but 2 and 3 can be in any order

n0br41ner 10-16-2012 12:40

Re: client_connect & client_putinserver
 
I know this topic a quite old, but i wanted to ask, does client_putinserver is called after the player got his flags?

jimaway 10-16-2012 12:43

Re: client_connect & client_putinserver
 
Quote:

Originally Posted by YamiKaitou (Post 1785334)
client_connect is called when the client connects to the server
client_putinserver is called a second or 2 before he sees the MOTD and is fully in
client_authorized is called when the client has gotten a SteamID

1 will always be first, but 2 and 3 can be in any order

flags are given in client_authorized

n0br41ner 10-16-2012 15:38

Re: client_connect & client_putinserver
 
I just looked in the include files and saw this
PHP Code:

/* Called when client gets valid STEAM id (usually
* between client_connect() and client_putinserver()). */ 

So if he gets the flags at client_authorized, then at client_putinserver, he should get his flags already right?

Emp` 10-16-2012 15:50

Re: client_connect & client_putinserver
 
Quote:

Originally Posted by YamiKaitou (Post 1785334)
client_connect is called when the client connects to the server
client_putinserver is called a second or 2 before he sees the MOTD and is fully in
client_authorized is called when the client has gotten a SteamID

1 will always be first, but 2 and 3 can be in any order


Backstabnoob 10-16-2012 19:28

Re: client_connect & client_putinserver
 
Also, client_connect (and possibly client_authorized) isn't called when the client doesn't fully rejoin the server with the 'retry' command.

Liverwiz 10-19-2012 19:31

Re: client_connect & client_putinserver
 
If you're wanting to do something to a client that is steamID specific. Do it at client_authorized. If you're looking to do something to a client that has connected, and you want to make sure has joined. Do it at client_putinserver. This is not necessary, as they can be interchangeable. But it is important to know the difference if you're trying to do something that requires that specification. (like a vault data grab or flags assignment)


All times are GMT -4. The time now is 05:44.

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