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

lock server on full public slots


Post New Thread Reply   
 
Thread Tools Display Modes
redboyke
Member
Join Date: May 2008
Old 06-03-2008 , 18:20   Re: lock server on full public slots
Reply With Quote #11

@ DA seems that if you want to lock the server at 10 players you have to fill in 11 players so it is locked at 10

@ LEE yours locks the server but does not unlock the server.
redboyke is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-03-2008 , 18:30   Re: lock server on full public slots
Reply With Quote #12

I can't see anything wrong it. Any help?

Last edited by Lee; 06-08-2008 at 07:28.
Lee is offline
redboyke
Member
Join Date: May 2008
Old 06-03-2008 , 18:38   Re: lock server on full public slots
Reply With Quote #13

Quote:
Originally Posted by Lee View Post
I changed set_pcvar_string() to set_cvar_string(). In the unlikely event that it works now there's a bug in AMXX.

I can't see anything wrong it. Any help?
DA 's plugin works fine the extra player isnt realy an issue

if there is a reason why i and other people should use your plugin please let me know.
redboyke is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-03-2008 , 18:40   Re: lock server on full public slots
Reply With Quote #14

I did. It's written horribly, but it really makes no odds to me.

Do try it one more time. Three things could happen; no change, it doesn't work at all, or it's fixed. The latter two identify the problem.
Lee is offline
redboyke
Member
Join Date: May 2008
Old 06-03-2008 , 18:49   Re: lock server on full public slots
Reply With Quote #15

Quote:
Originally Posted by Lee View Post
I did. It's written horribly, but it really makes no odds to me.

Do try it one more time. Three things could happen; no change, it doesn't work at all, or it's fixed. The latter two identify the problem.
Why is it coded horribly?Maybe you can explain to non programmers so they know the diffrence.or so DA can understand whats wrong with his.

To people that dont know anything about it it's the one that works that does the diffrence, i'll try your later i'll let you know.
redboyke is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-03-2008 , 19:31   Re: lock server on full public slots
Reply With Quote #16

I hope DA will be able to see why himself. Remember that native calls are much more expensive than memory lookups, assignments, comparisons and pretty much everything other than huge loops.

I'm not sure I'm able to explain it in a way you'll understand other than it performs a lot of unnecessary work.
Lee is offline
Mlk27
Veteran Member
Join Date: May 2008
Old 06-03-2008 , 19:51   Re: lock server on full public slots
Reply With Quote #17

Quote:
Originally Posted by Lee View Post
there are already built-in cvars for limiting how many times people can query your server.
what's that cvar?
Mlk27 is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-03-2008 , 19:58   Re: lock server on full public slots
Reply With Quote #18

Quote:
max_queries_sec 0.5 float server It's part of the rate limiting code to Out-Of-Band queries (i.e. players, info). It defines max queries per second per user (averaged over max_queries_window).
max_queries_sec_global 10 integer server It's part of the rate limiting code to Out-Of-Band queries (i.e. players, info). It defines max queries per second for all queries.
max_queries_window 30 integer server It's part of the rate limiting code to Out-Of-Band queries (i.e. players, info). It defines time window to average query rates over.
Lee is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 06-04-2008 , 07:43   Re: lock server on full public slots
Reply With Quote #19

Quote:
Originally Posted by Lee
With all due respect DA, what were you thinking?

I'm a little sceptical that people refreshing the server browser would lag your server and there are already built-in cvars for limiting how many times people can query your server.
What server browser? The client_connect function will only call if someone conenct's to server...

Well, your function is better but you forgot to add a function to check if the player's are bots. You should add this.

However, I think there is not much difference between your plugin and mine. Get_players is a fast function and many plugin's use it in "fast call functions".
__________________
DA is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-04-2008 , 09:29   Re: lock server on full public slots
Reply With Quote #20

The Steam server browser. When you attempt to join a server it queries it to see if it's full. The problem this plugin is meant to address was people constantly clicking 'refresh' until a slot becomes available.
Lee 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 23:46.


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