AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Q about is_user_connected (https://forums.alliedmods.net/showthread.php?t=15286)

07-14-2005 19:47

Q about is_user_connected
 
Would player that is downloading a map return false? Thus he is connected but he is not realy in the game yet.

DahVid 07-14-2005 19:57

You answered yourself, he IS connected.

07-14-2005 20:04

hmm well would there be some other way to know if someone is downloading a map from the server?

VanillA Ice 07-14-2005 20:20

get_user_time - Returns a player's playing time in seconds.

Syntax:
get_user_time ( index, [ flag ] )
Type:
Native
Notes:
index is a player index from 1 to 32.

If the flag is set, the result is returned minus the connection time


it will also include how much time they have been on the sever to, not just he connection ti,e :/

v3x 07-14-2005 20:27

Lmao, you're quite dumb VanillA..

Code:
if ( is_user_connecting(id) ) {     /* Blah */ }

VanillA Ice 07-14-2005 20:32

ooo i thought he wanted time :/...i am very very sleepy right now so plz disregard dumb things... :oops:

GHW_Chronic 07-14-2005 20:38

Quote:

Originally Posted by v3x
Code:
if ( is_user_connecting(id) ) {     /* Blah */ }

is_user_connecting...that was so painfully obvious

07-15-2005 04:07

huh? So does the is_user_connected return false if the player is dowloading a map or not?

Because if it still gives true then the
Code:
if (get_user_time () <=1)  { /* Ping Pong */ }
would be effective way to know if user is downloading a map.

WaZZeR++ 07-15-2005 04:48

is_user_connecting will return 1 if the player is connecting and downloading the needed files, but i dont think is possible to see what the player is downloading...

07-15-2005 05:04

naah, it does not mater what he is downloading as long as i have way to tell apart a player who is downlaoding and who is just spectatoring.

if the player has been playing for equal or less than a second, he probably is still geting in to the server.

Thanks for the help.


All times are GMT -4. The time now is 23:15.

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