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

Kick unregistered steam id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MUSUL
Junior Member
Join Date: Mar 2010
Old 03-10-2010 , 06:46   Kick unregistered steam id
Reply With Quote #1

Hello,

I need to know how to check when a player connect to the server, if the steam id isn't registered in mysql, kick him from the server, and if the steam id is registered, accept the connection and force to the nick he registered in mysql.

It's the first time i try to make this in amx and i don't how to do for check the user BEFORE join the server. And how to check HIS steam id. I know connect to mysql etc. Just need the proccess of the IF.

Thanks.
MUSUL is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-10-2010 , 18:12   Re: Kick unregistered steam id
Reply With Quote #2

You will need to check in client_authorized(id).
__________________
fysiks is offline
JaGareN
Senior Member
Join Date: Mar 2009
Old 03-11-2010 , 09:47   Re: Kick unregistered steam id
Reply With Quote #3

And using "get_user_authid" there.
JaGareN is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 03-11-2010 , 14:04   Re: Kick unregistered steam id
Reply With Quote #4

With `get_user_authid' you can access the player Steam ID.
The `client_connect' forward is called every time a player connects to your server. Use its `id' parameter to get the Steam ID.
Use `server_cmd("amx_kick .....")' with the right parameters to kick the user after checking database.
Seta00 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-11-2010 , 19:59   Re: Kick unregistered steam id
Reply With Quote #5

Quote:
Originally Posted by Seta00 View Post
With `get_user_authid' you can access the player Steam ID.
The `client_connect' forward is called every time a player connects to your server. Use its `id' parameter to get the Steam ID.
Use `server_cmd("amx_kick .....")' with the right parameters to kick the user after checking database.
1. Yes.
2. No, client might not yet have a valid SteamID in client_connect(id). Use client_authorized(id).
3. No. Don't use amx_* commands for this (IMO).
__________________
fysiks is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 03-14-2010 , 17:22   Re: Kick unregistered steam id
Reply With Quote #6

I want to block players that are using hacked/cracked steam.
Its authid is VALVE_ID_LAN how can i do that ?
SpeeDeeR is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-14-2010 , 17:25   Re: Kick unregistered steam id
Reply With Quote #7

Use a 48 protocol Steam server without dproto or anything that allows Non-Steam to play in your server.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 03-14-2010 , 17:43   Re: Kick unregistered steam id
Reply With Quote #8

Well actually i asked a friend and he told me that you can play in protocol 48 servers without dproto(but he's part sure), thats why i need to make that check.
SpeeDeeR is offline
spiider
AlliedModders Donor
Join Date: Jan 2010
Old 03-15-2010 , 12:06   Re: Kick unregistered steam id
Reply With Quote #9

check my post http://forums.alliedmods.net/forumdisplay.php?f=12
the script kick who is not registered.
spiider is offline
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 03-15-2010 , 13:11   Re: Kick unregistered steam id
Reply With Quote #10

Quote:
Use a 48 protocol Steam server without dproto or anything that allows Non-Steam to play in your server.
something known as (hidden) allows you to download some games(not all) and play on steam server, having an avatar and nobody will know that you use it.
oh imma blind, offtop..

Last edited by worldspawn; 03-15-2010 at 13:16.
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
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 02:56.


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