AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to check if user is connecting for the first time (https://forums.alliedmods.net/showthread.php?t=86758)

aNt1 03-02-2009 06:49

How to check if user is connecting for the first time
 
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.

hleV 03-02-2009 07:17

Re: How to check if user is connecting for the first time
 
You can't precache file to a separated client. After you precache it, all users that doesn't have one downloads it from server.

aNt1 03-02-2009 07:29

Re: How to check if user is connecting for the first time
 
Then what if when the player is authorized i set cl_allowdownload 0 and after putinserver change it back to 1?

One 03-02-2009 07:34

Re: How to check if user is connecting for the first time
 
Quote:

Originally Posted by aNt1 (Post 772228)
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?

aNt1 03-02-2009 08:30

Re: How to check if user is connecting for the first time
 
Grrr, you're right, bad idea :). If the user doesn't have the map he wont downloaded.

Owyn 03-02-2009 12:12

Re: How to check if user is connecting for the first time
 
you can't make user not download a file other players should use


All times are GMT -4. The time now is 16:54.

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