Raised This Month: $51 Target: $400
 12% 

client_connect & client_putinserver


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 08-28-2012 , 14:39   client_connect & client_putinserver
Reply With Quote #1

Whats the difference?
GhostMan is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 08-28-2012 , 15:03   Re: client_connect & client_putinserver
Reply With Quote #2

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

Last edited by Torge; 08-28-2012 at 15:03.
Torge is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-28-2012 , 15:33   Re: client_connect & client_putinserver
Reply With Quote #3

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
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 10-16-2012 , 12:40   Re: client_connect & client_putinserver
Reply With Quote #4

I know this topic a quite old, but i wanted to ask, does client_putinserver is called after the player got his flags?
__________________
n0br41ner is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 10-16-2012 , 12:43   Re: client_connect & client_putinserver
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
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
jimaway is offline
n0br41ner
Senior Member
Join Date: May 2012
Location: Planet Earth
Old 10-16-2012 , 15:38   Re: client_connect & client_putinserver
Reply With Quote #6

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?
__________________
n0br41ner is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 10-16-2012 , 15:50   Re: client_connect & client_putinserver
Reply With Quote #7

Quote:
Originally Posted by YamiKaitou View Post
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
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 10-16-2012 , 19:28   Re: client_connect & client_putinserver
Reply With Quote #8

Also, client_connect (and possibly client_authorized) isn't called when the client doesn't fully rejoin the server with the 'retry' command.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 10-19-2012 , 19:31   Re: client_connect & client_putinserver
Reply With Quote #9

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)
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:39.


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