AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   what is the function (https://forums.alliedmods.net/showthread.php?t=56394)

firewall 06-13-2007 04:15

what is the function
 
what function retur the code:

"entered the game" ?

Lee 06-13-2007 04:39

Re: what is the function
 
client_authorized
client_connect
client_putinserver

firewall 06-13-2007 06:56

Re: what is the function
 
Quote:

Originally Posted by Lee (Post 489045)
client_authorized
client_connect
client_putinserver

client_authorized is for steam validation, and from documentation ""client_putinserver and client_authorized are not guaranteed to happen in any particular order."

the order is
user conected ip address
steam validation
user entered the game

eg:
Iubaretu<1799><STEAM_ID_PENDING><>" connected, address "86.125.xxx.xxx:27005"
Iubaretu<1799><STEAM_0:1:1381xxxx><>" STEAM USERID validated
Iubaretu<1799><STEAM_0:1:1381xxxx><>" entered the game
Iubaretu<1799><STEAM_0:1:1381xxxx><>" joined team "CT"

Lee 06-13-2007 07:26

Re: what is the function
 
You want client_putinserver(). The documentation is correct when it states the order is not guaranteed..

Brad 06-13-2007 08:10

Re: what is the function
 
Keep in mind though, as the documentation alluded to, you might not be able to get a player's authid in client_putinserver(), firewall.

firewall 06-13-2007 09:50

Re: what is the function
 
so client_connect is the last?
i saw that client_putinserver and client_authorized aren't in a specific order but then client_connect is the last ?

1.client_putinserver

2.client_authorized
3.client_connect

1.client_authorized
2.client_putinserver
3.client_connect.

Alka 06-13-2007 09:52

Re: what is the function
 
I'm shure this is the correct order! :wink:

Code:

client_connect // Once that players types in console "connect bla bla" and press enter.
client_authorized //Steam validating,shure after "connect"
client_putinserver //Once player enterd the game


Lee 06-13-2007 09:57

Re: what is the function
 
For the last time: client_putinserver() and client_authorized() aren't guaranteed to be called in any particular order. client_connect() is first.

Alka 06-13-2007 10:02

Re: what is the function
 
Of course is not! But i tell the order for player connecting...and to answer to firewall
Code:

client_putinserver
is return "entered the game" :wink:

EDIT: @Lee - correct :wink:


All times are GMT -4. The time now is 10:33.

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