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. |
Re: Kick unregistered steam id
You will need to check in client_authorized(id).
|
Re: Kick unregistered steam id
And using "get_user_authid" there.
|
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. |
Re: Kick unregistered steam id
Quote:
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). |
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 ? |
Re: Kick unregistered steam id
Use a 48 protocol Steam server without dproto or anything that allows Non-Steam to play in your server.
|
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.
|
Re: Kick unregistered steam id
check my post http://forums.alliedmods.net/forumdisplay.php?f=12
the script kick who is not registered. |
Re: Kick unregistered steam id
Quote:
oh imma blind, offtop.. |
| All times are GMT -4. The time now is 19:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.