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

[Any] Veterans Only (v1.3, 2020-06-10)


Post New Thread Reply   
 
Thread Tools Display Modes
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 05-24-2015 , 18:54   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #31

Quote:
Originally Posted by eric0279 View Post
Hello,

Only work with SM 1.7.1 or 1.6.X work?.

because, .cfg:
Code
not kicked (i have 5164h and 61h for last 15 days, profile private.

if set sm_veterans_kickfailure 1 :
Code:
Disconnect: Failed to retrieve your playtime.
Disconnect: Failed to retrieve your playtime.
re edit: data/veterans_cache.txt >> not created!?
Code:
VeteransOnly: New client, requesting playtime for SteamId XXXXXXX
You cannot access data for a private profile, so I believe they will always fail.

Return sm_veterans_kickfailure to the default value of 1 in order to kick these failing requests.

I also suggest you take a higher _cachetime; people spamming with rejoins every 5-6 seconds would make your server spam with new requests for new information, there is no reasons ever for such ridiculous behavior.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 05-24-2015 , 19:55   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #32

ok thanks
eric0279 is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 05-29-2015 , 08:41   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #33

Hello,

how work this plugin really?

Eg:
http://steamcommunity.com/id/Solyc/

join game (not kicked)


sm_veterans_mintotal 15000
sm_veterans_mintotalminuslastweeks 1000
eric0279 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 05-29-2015 , 19:18   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #34

Quote:
Originally Posted by eric0279 View Post
Hello,

how work this plugin really?
Supposed to work as explained in the first post.

Quote:
Originally Posted by eric0279 View Post
Eg:
http://steamcommunity.com/id/Solyc/

join game (not kicked)
Let's have a look at that.

Currently, he seems only to have been playing L4D2, and some Pinball thing (whihc doesn't seem to be Multiplayer). So I assume you are talking about L4D2?

Quote:
Originally Posted by eric0279 View Post
sm_veterans_mintotal 15000
sm_veterans_mintotalminuslastweeks 1000
_mintotal is how many minutes he must minimum have played totally.
_mintotalminuslastweeks is how many minutes he must minimum have played totally MINUS THE LAST TWO WEEKS.

Your _mintotal gives 250 hours, and your _mintotalminuslastweeks gives 16.6667 hours.

Currently, that user has been playing 641 hours total for L4D2 (counted in _mintotal). 2.6 hours of them are within the past two weeks, so this means that ~638.4 hours will be counted (in _mintotalminuslastweeks):


641 * 60 = 38460 minutes
-> 38460 is higher than your 15000 minutes set in _mintotal.

638.4 * 60 = 38304 minutes
-> 38304 is higher than your 1000 minutes set in _mintotalminuslastweeks
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 05-30-2015 , 04:31   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #35

Yes for L4D2.

L4D2 is multiplayer (4vs4 in versus mode)

so it adds the two to an average?
eric0279 is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 05-30-2015 , 12:21   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #36

Quote:
Originally Posted by eric0279 View Post
Yes for L4D2.

L4D2 is multiplayer (4vs4 in versus mode)

so it adds the two to an average?
An average? No?

Steam tracks you with your total game time, and your game time for the past 2 weeks on every game.

As the variable name says (and as OP explained), "minuslastweeks" variable takes total game time MINUS the game time for the past two weeks. That's has nothing to do with "an average".

So if you have been playing a total of 500 hours, and you have had your game running 24/7 for the past 7 days, _mintotalminuslastweeks would accept you if you had at least (500 - 168) = 332 hours on record, as the (7 * 24) = 168 hours was from the past two weeks.

As every hour has 60 minutes, we will do (500 * 60) = 30000 minutes, and (332 * 60) = 19920 minutes.

So in order to kick you if your game time matches above, you should use (at least!) these values:
_mintotal = 30001
_mintotalminuslastweeks = 19921

(Although I do suggest using more than just +1 minute from your desired game time.)


If it still doesn't make sense to you this time, I'm somehow afraid I cannot explain it to you.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 05-31-2015 , 17:46   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #37

Hello,

@arne1288 yes thanks, i have modified this script.

@DarkSoroush can you share your php script?

If your stop your website, plugin is down...

Thanks

Last edited by eric0279; 05-31-2015 at 17:48.
eric0279 is offline
s.m.a.c head
Senior Member
Join Date: Apr 2012
Location: Liverpool
Old 07-08-2015 , 02:47   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #38

Quote:
Originally Posted by s.m.a.c head View Post
installed
connected to L4D2 server with fully open profile, and get message "unable to receive your playtime information" (or similar)
Does not work I set to 100 Hours (6000 mins) I have over 3000 hours


EDIT
it worked second time trying? anyway it works now thanks


EDIT X2

Would be nice if you could add steam IDs that you dont mind joining EG someone you know has many hours but has a private profile?



This is nice but the problem is 50% of players have private profiles, so its blocking 50% of all players no matter what there playtime.

A better option for me would be this.
To judge a player by when they bought the game, so for example you must have had l4d2 for at least 1 year or something similar, we could also block all free players(anyone who got game on that 24 hour free period) , and maybe even block family sharing?>?

Thanks

Last edited by s.m.a.c head; 07-08-2015 at 02:55.
s.m.a.c head is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 07-08-2015 , 11:38   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #39

Quote:
Originally Posted by s.m.a.c head View Post
This is nice but the problem is 50% of players have private profiles, so its blocking 50% of all players no matter what there playtime.

A better option for me would be this.
To judge a player by when they bought the game, so for example you must have had l4d2 for at least 1 year or something similar, we could also block all free players(anyone who got game on that 24 hour free period) , and maybe even block family sharing?>?
First of all, - when your post is the latest one, then use the EDIT button to add more information to that particular post.


Anyway, as you said - "private profiles" - there is a reason they are called private profiles. You cannot retrieve data for them, so you have a choice. Kick them? Or allow them?

If you could gather information about them even if private, there would be no no reason for a such feature called "private profiles".

In relation to the "having had the game for 1 year"; Steam does not publish the data of when a specific user acquired the game, not on the Steam API at least.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
s.m.a.c head
Senior Member
Join Date: Apr 2012
Location: Liverpool
Old 07-09-2015 , 03:21   Re: [Any] Veterans Only (v1.0, 2015-01-22)
Reply With Quote #40

Quote:
Originally Posted by arne1288 View Post
First of all, - when your post is the latest one, then use the EDIT button to add more information to that particular post.


Anyway, as you said - "private profiles" - there is a reason they are called private profiles. You cannot retrieve data for them, so you have a choice. Kick them? Or allow them?

If you could gather information about them even if private, there would be no no reason for a such feature called "private profiles".

In relation to the "having had the game for 1 year"; Steam does not publish the data of when a specific user acquired the game, not on the Steam API at least.
Oh ok maybe the free version has a different app number? I know there was a way to decipher between the versions using steamworks
s.m.a.c head is offline
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 17:09.


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