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

Server Binder


Post New Thread Reply   
 
Thread Tools Display Modes
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 12-18-2008 , 08:56   Re: Server Binder
Reply With Quote #11

The only way its possible on OB/Source games is if cl_restrict_server_commands is set to 0. By default it is 1.

0 = Don't restrict any server commands
1 = Restrict server commands in Valve multiplayer games
2 = Restrict server commands in all multiplayer games
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Old 12-18-2008 , 08:57   Re: Server Binder
Reply With Quote #12

I'll check if I there's a way to get rid of it.
Sammy-ROCK! is offline
DDR Khat
SourceMod Donor
Join Date: Feb 2006
Old 12-18-2008 , 09:05   Re: Server Binder
Reply With Quote #13

You could change the CVAR to 0 before setting a bind to the user, then reapply it's old value afterwards. That would bypass this.

Also, you could make an optional value for L4D to set the sv_search_key for the client to the same as the servers (if it has one) so that if they wish to make games via the lobby, it will ensure they use that server when and if possible. However if this is the case you will need to warn users that this might cause them to not find a dedicated server if there is none available with the search key enabled (due to Valve being daft and not following a logical process like below)
Code:
if(availableservers(sv_search_key)) join();
else if(availableservers(global)) join();
else queryclient("No dedicated servers found, host a local?");
__________________
Nothing but a whisper in the wind~~
DDR Khat is offline
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Old 12-18-2008 , 09:10   Re: Server Binder
Reply With Quote #14

Why would they bother with the game functionality? (sarcasm)

The problem atm is that it's a client only cvar. The FindConVar can't retrieve it.

Weird: ZPS, ZM and L4D doesn't have cl_restrict_server_commands.

Last edited by Sammy-ROCK!; 12-18-2008 at 09:23.
Sammy-ROCK! is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 12-18-2008 , 09:29   Re: Server Binder
Reply With Quote #15

You can change client cvars on L4D. ZM, ZPS are all 'mods' and thus probably had the cvar removed.

CSS/TF2, its impossible.

Either way, change the game mod to Left 4 Dead and I'll approve the plugin.
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Old 12-18-2008 , 09:42   Re: Server Binder
Reply With Quote #16

Done.
Sammy-ROCK! is offline
DDR Khat
SourceMod Donor
Join Date: Feb 2006
Old 12-18-2008 , 09:45   Re: Server Binder
Reply With Quote #17

Quote:
Originally Posted by Sammy-ROCK! View Post
The problem atm is that it's a client only cvar. The FindConVar can't retrieve it.
That statement != true.
sv_search_key is both on the server and the client. IF both match, the lobby searcher will hop to it, ELSE it asks the client if they wish to host a local.
Would it not be possible to get the client to exec; sv_search_key %s ?
__________________
Nothing but a whisper in the wind~~
DDR Khat is offline
Liam
SourceMod Developer
Join Date: Jan 2008
Location: Atlanta, GA
Old 12-18-2008 , 10:11   Re: Server Binder
Reply With Quote #18

only on L4D or custom mods that have had the cl_restrict_server_commands removed.
__________________
Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

Weapon Restrictions w/ Warmup
High Ping Kicker - Lite Edition
AFK Manager
Liam is offline
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Old 12-18-2008 , 10:30   Re: Server Binder
Reply With Quote #19

Quote:
Originally Posted by DDR Khat View Post
That statement != true.
sv_search_key is both on the server and the client. IF both match, the lobby searcher will hop to it, ELSE it asks the client if they wish to host a local.
Would it not be possible to get the client to exec; sv_search_key %s ?
Sorry I meant cl_restrict_server_commands wasn't able to be found. Just because it was removed. You can make the person have the sv_search_key the problem is have him to keep it. Binded commands gets saved but I'm not sure about sv_search_key.
Sammy-ROCK! is offline
DDR Khat
SourceMod Donor
Join Date: Feb 2006
Old 12-18-2008 , 12:47   Re: Server Binder
Reply With Quote #20

Quote:
Originally Posted by Sammy-ROCK! View Post
Sorry I meant cl_restrict_server_commands wasn't able to be found. Just because it was removed. You can make the person have the sv_search_key the problem is have him to keep it. Binded commands gets saved but I'm not sure about sv_search_key.
True point, I had forgotten about that. I don't believe it is kept.
__________________
Nothing but a whisper in the wind~~
DDR Khat 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 18:32.


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