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

Q about is_user_connected


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Guest
Old 07-14-2005 , 19:47   Q about is_user_connected
Reply With Quote #1

Would player that is downloading a map return false? Thus he is connected but he is not realy in the game yet.
DahVid
Senior Member
Join Date: Jun 2005
Old 07-14-2005 , 19:57  
Reply With Quote #2

You answered yourself, he IS connected.
DahVid is offline
Guest
Old 07-14-2005 , 20:04  
Reply With Quote #3

hmm well would there be some other way to know if someone is downloading a map from the server?
VanillA Ice
Senior Member
Join Date: Apr 2005
Old 07-14-2005 , 20:20  
Reply With Quote #4

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 :/
__________________
I can no longer help here......school has started... :/ goodbye everybody :'(
VanillA Ice is offline
Send a message via MSN to VanillA Ice Send a message via Yahoo to VanillA Ice
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-14-2005 , 20:27  
Reply With Quote #5

Lmao, you're quite dumb VanillA..

Code:
if ( is_user_connecting(id) ) {     /* Blah */ }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
VanillA Ice
Senior Member
Join Date: Apr 2005
Old 07-14-2005 , 20:32  
Reply With Quote #6

ooo i thought he wanted time :/...i am very very sleepy right now so plz disregard dumb things...
__________________
I can no longer help here......school has started... :/ goodbye everybody :'(
VanillA Ice is offline
Send a message via MSN to VanillA Ice Send a message via Yahoo to VanillA Ice
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-14-2005 , 20:38  
Reply With Quote #7

Quote:
Originally Posted by v3x
Code:
if ( is_user_connecting(id) ) {     /* Blah */ }
is_user_connecting...that was so painfully obvious
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Guest
Old 07-15-2005 , 04:07  
Reply With Quote #8

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++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 07-15-2005 , 04:48  
Reply With Quote #9

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...
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
Guest
Old 07-15-2005 , 05:04  
Reply With Quote #10

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.
Reply


Thread Tools
Display Modes

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 09:00.


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