Raised This Month: $ Target: $400
 0% 

[Request] Members only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wundeR
Member
Join Date: Aug 2008
Location: Norway
Old 11-21-2014 , 07:58   [Request] Members only
Reply With Quote #1

Hello!

I have been searching for an "Member only" plugins but no results.

How it works?
It should kick players if the steam id is not in an database.

What does it need?
* Sql connection to an database
* Kick player if the steam id are not in the database
* Kick message

(Sorry for bad english)

Thanks!
__________________
Ehm?

wundeR is offline
Send a message via MSN to wundeR Send a message via Skype™ to wundeR
Danny_l4d
Senior Member
Join Date: Feb 2010
Old 11-21-2014 , 08:59   Re: [Request] Members only
Reply With Quote #2

Isn't it better to just lock you server with a password and give that to your members?
__________________
Danny_l4d is offline
wundeR
Member
Join Date: Aug 2008
Location: Norway
Old 11-21-2014 , 09:07   Re: [Request] Members only
Reply With Quote #3

Quote:
Originally Posted by Danny_l4d View Post
Isn't it better to just lock you server with a password and give that to your members?
Naa, i want a public server so everyone that are registered on the web page can play, and all can register
__________________
Ehm?

wundeR is offline
Send a message via MSN to wundeR Send a message via Skype™ to wundeR
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 11-21-2014 , 11:00   Re: [Request] Members only
Reply With Quote #4

Quote:
Originally Posted by wundeR View Post
Naa, i want a public server so everyone that are registered on the web page can play, and all can register
Lock server with sv_password and only have connect link with pass hidden to members only on website.
__________________
WildCard65 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-21-2014 , 11:10   Re: [Request] Members only
Reply With Quote #5

I remember there is already that kind plugin (whitelist). But I found only TXT versions.

I made my own example, with temporary mysql connection inluded. (Not sure will it work 100%, in csgo timer stops when server hibernate)

- Edit databases.cfg and choose database name where you want connect.
- Plugin now query steamid results from table called members_only, change plugins source code if you have different named table already with steamid column
- Plugin not create table(s), you do it!
- Plugin skip check players first 8 char from steamid (STEAM_0:1:12345678)
so this should work accross all game mods (cs:s, csgo, etc. etc.).
example, these all steamid types in steamid column works:
STEAM_0:1:12345678
STEAM_1:1:12345678
1:12345678

- skips bots and admins
- cvar "sm_membersonly_kick_msg" you can change kick message
Tell if you have trouble.

example members only

Last edited by Bacardi; 11-21-2014 at 11:13.
Bacardi is offline
wundeR
Member
Join Date: Aug 2008
Location: Norway
Old 11-21-2014 , 11:34   Re: [Request] Members only
Reply With Quote #6

Quote:
Originally Posted by Bacardi View Post
I remember there is already that kind plugin (whitelist). But I found only TXT versions.

I made my own example, with temporary mysql connection inluded. (Not sure will it work 100%, in csgo timer stops when server hibernate)

- Edit databases.cfg and choose database name where you want connect.
- Plugin now query steamid results from table called members_only, change plugins source code if you have different named table already with steamid column
- Plugin not create table(s), you do it!
- Plugin skip check players first 8 char from steamid (STEAM_0:1:1234567
so this should work accross all game mods (cs:s, csgo, etc. etc.).
example, these all steamid types in steamid column works:
STEAM_0:1:12345678
STEAM_1:1:12345678
1:12345678

- skips bots and admins
- cvar "sm_membersonly_kick_msg" you can change kick message
Tell if you have trouble.

example members only
Thanks!

Will try i now!
__________________
Ehm?

wundeR is offline
Send a message via MSN to wundeR Send a message via Skype™ to wundeR
wundeR
Member
Join Date: Aug 2008
Location: Norway
Old 11-21-2014 , 11:54   Re: [Request] Members only
Reply With Quote #7

Works perfectly!

Just one more thing, can u make a cvar for if admin are ignored or not & an chat message that the player tryed to connect but dont was an member?
__________________
Ehm?


Last edited by wundeR; 11-21-2014 at 12:28.
wundeR is offline
Send a message via MSN to wundeR Send a message via Skype™ to wundeR
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-21-2014 , 17:14   Re: [Request] Members only
Reply With Quote #8

Quote:
Originally Posted by wundeR View Post
Works perfectly!

Just one more thing, can u make a cvar for if admin are ignored or not & an chat message that the player tryed to connect but dont was an member?
Well yes I can make that kind of cvar...
What if I change admin access to "sm_membersonly_immunity" and it have flag to "z" (ROOT) ?
You can override that "sm_membersonly_immunity" to another flag(s) from admin_overrides.cfg
or even add only this one immunity to admin group through admin_groups.cfg overrides.
This will work as long as you not grant anyone with admin flag "z" (not even yourself ).

chat and log added with steamid showed


Spoiler
Bacardi is offline
wundeR
Member
Join Date: Aug 2008
Location: Norway
Old 11-21-2014 , 17:31   Re: [Request] Members only
Reply With Quote #9

Quote:
Originally Posted by Bacardi View Post
Well yes I can make that kind of cvar...
What if I change admin access to "sm_membersonly_immunity" and it have flag to "z" (ROOT) ?
You can override that "sm_membersonly_immunity" to another flag(s) from admin_overrides.cfg
or even add only this one immunity to admin group through admin_groups.cfg overrides.
This will work as long as you not grant anyone with admin flag "z" (not even yourself ).

chat and log added with steamid showed


Spoiler
Yes man, that will work good!

Thank you so much!
__________________
Ehm?

wundeR is offline
Send a message via MSN to wundeR Send a message via Skype™ to wundeR
midnight9
Senior Member
Join Date: Nov 2012
Old 02-28-2015 , 10:16   Re: [Request] Members only
Reply With Quote #10

Would it be possible to modify this, so it allows non members to connect as long as there is at least one member connected? It would need to do the check X time after connection, and check only once, so if member leaves game still can be continued untill server is empty. Im need something for L4D2, to prevent non members from forcing my servers.
midnight9 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 04:36.


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