AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Kick unregistered steam id (https://forums.alliedmods.net/showthread.php?t=120976)

MUSUL 03-10-2010 06:46

Kick unregistered steam id
 
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.

fysiks 03-10-2010 18:12

Re: Kick unregistered steam id
 
You will need to check in client_authorized(id).

JaGareN 03-11-2010 09:47

Re: Kick unregistered steam id
 
And using "get_user_authid" there.

Seta00 03-11-2010 14:04

Re: Kick unregistered steam id
 
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.

fysiks 03-11-2010 19:59

Re: Kick unregistered steam id
 
Quote:

Originally Posted by Seta00 (Post 1114621)
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).

SpeeDeeR 03-14-2010 17:22

Re: Kick unregistered steam id
 
I want to block players that are using hacked/cracked steam.
Its authid is VALVE_ID_LAN how can i do that ?

Exolent[jNr] 03-14-2010 17:25

Re: Kick unregistered steam id
 
Use a 48 protocol Steam server without dproto or anything that allows Non-Steam to play in your server.

SpeeDeeR 03-14-2010 17:43

Re: Kick unregistered steam id
 
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.

spiider 03-15-2010 12:06

Re: Kick unregistered steam id
 
check my post http://forums.alliedmods.net/forumdisplay.php?f=12
the script kick who is not registered.

worldspawn 03-15-2010 13:11

Re: Kick unregistered steam id
 
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..


All times are GMT -4. The time now is 19:48.

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