AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Client Connecting... (https://forums.alliedmods.net/showthread.php?t=58150)

Splintter 07-20-2007 00:32

Client Connecting...
 
Hello, i'm starting at scripting...

when a client connect on my server, what is the sequence of functions that will being called?

client_putinserver
client_connect
client_authorized

... ?

Thank you in advance

Minimum 07-20-2007 01:37

Re: Client Connecting...
 
Personally I always use client_putinserver. I hadn't had a situation yet where I had to use something else.

djmd378 07-20-2007 02:33

Re: Client Connecting...
 
Basicly...

client_connect (This is called when the client is connecting)
client_putinserver (This is called when they are in the server)
client_authorized (This is called when the server has their STEAM_ID)

Xanimos 07-20-2007 02:54

Re: Client Connecting...
 
To answer your question fully, theoretically the order is
client_connect(id)
client_authorized(id)
client_putinserver(id)

However client_authorized(id) can sometimes be called after client_putinserver(id).


All times are GMT -4. The time now is 21:32.

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