Raised This Month: $ Target: $400
 0% 

How to check if user is connecting for the first time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
aNt1
Member
Join Date: Jul 2008
Location: trance energy
Old 03-02-2009 , 06:49   How to check if user is connecting for the first time
Reply With Quote #1

As the title says, how to check if a user is connecting for the first time on the server? Checking if his steamid is in csstats.dat could work? If so how? I want to integrate in sank sounds plugin so when a player connects for the first time he wont download the sounds.
__________________
aNt1 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-02-2009 , 07:17   Re: How to check if user is connecting for the first time
Reply With Quote #2

You can't precache file to a separated client. After you precache it, all users that doesn't have one downloads it from server.
__________________
hleV is offline
aNt1
Member
Join Date: Jul 2008
Location: trance energy
Old 03-02-2009 , 07:29   Re: How to check if user is connecting for the first time
Reply With Quote #3

Then what if when the player is authorized i set cl_allowdownload 0 and after putinserver change it back to 1?
__________________
aNt1 is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-02-2009 , 07:34   Re: How to check if user is connecting for the first time
Reply With Quote #4

Quote:
Originally Posted by aNt1 View Post
Then what if when the player is authorized i set cl_allowdownload 0 and after putinserver change it back to 1?
let me thinking................

when is a file failing by me, i cant connect to server or maybe can i?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
aNt1
Member
Join Date: Jul 2008
Location: trance energy
Old 03-02-2009 , 08:30   Re: How to check if user is connecting for the first time
Reply With Quote #5

Grrr, you're right, bad idea . If the user doesn't have the map he wont downloaded.
__________________
aNt1 is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 03-02-2009 , 12:12   Re: How to check if user is connecting for the first time
Reply With Quote #6

you can't make user not download a file other players should use
Owyn is offline
Send a message via ICQ to Owyn
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 16:54.


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