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

"Members only" cs-servers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
active-x
Junior Member
Join Date: Mar 2006
Old 03-15-2006 , 06:13   "Members only" cs-servers
Reply With Quote #1

Anyone know how i can code this script or maybe anyone have a script for me that works this way:

Well, starting, i want a script that kicks users thats not have registered their steam_id at a mysql database. If the steam_id thats connect is in the database, the user will rename to the same as the username on the database.

Ex: If a user with the steam_id 123 connects and is not in the database, she/he will be kicked. If another user with the steam_id 456 connects and is in the database, the server will rename the users name to the same name as inserted in the same row as the steamid. Ex Freddy19. So if the user with steam_id 456 connects with the name n00b, it will automatically rename to Freddy19. And the user is unable to change his or her name.

The mysql-table will have 2 fields in use in this script: steam_id and username.

Thanks in advance. Hoping for good answers ;)
active-x is offline
BAILOPAN
Join Date: Jan 2004
Old 03-15-2006 , 06:49  
Reply With Quote #2

This is pretty simple to do. In client_authorized, get the user's steam id, see if it's in the database, and kick them otherwise.

You might want to look at JGHG's forum integration plugin to see what I mean.
__________________
egg
BAILOPAN is offline
active-x
Junior Member
Join Date: Mar 2006
Old 03-15-2006 , 08:50  
Reply With Quote #3

Quote:
Originally Posted by BAILOPAN
This is pretty simple to do. In client_authorized, get the user's steam id, see if it's in the database, and kick them otherwise.

You might want to look at JGHG's forum integration plugin to see what I mean.
i'm really new with this coding language, i usually code php and mysql. so if you please could give me some examples or links to guides?

And how about forcing the name as the one in the row?
__________________
Admin @ NextInLine.no
active-x is offline
active-x
Junior Member
Join Date: Mar 2006
Old 03-15-2006 , 11:03  
Reply With Quote #4

Have found a solution, but now i need a code that can prevent users from changing nicknames, anyone?
__________________
Admin @ NextInLine.no
active-x 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 11:23.


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