Thread: VAC Ban Status
View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-27-2009 , 21:46   Re: VAC Ban Status
Reply With Quote #18

I did some work on it tonight. I added an auto-check option that will check players as they connect (can be enabled\disabled via cvar). If detected you can apply kick, kick & ban, kick by kill\death ratio, shoot-blanks, or just log\notify-admin punishment. For the kick by kill\death ratio option, it will not kick the player until the ratio is met. Does anyone have any suggestions or requests? I would like to add SQL support so that regulars do not get re-checked every time they connect. I will probably make their SQL entry expire every 2 weeks or so.

Quote:
Originally Posted by ToXedVirus View Post
The idea of this is nice.
The only thing i want to know is, were i can retrieve the information,
i mean, by looking into your code i see that you are getting everything from the site, i tried to lookup with my browser steamcommunity.com/profiles/toxedvirus?xml=1 and it doesnt work. Could you please explain how your plugin works?
First you need to convert the steam-id to steam community id. Once that is done you send a HTTP request with the steam community id.

STEAM_0:1:1007, community-id is 76561197960267743

http://steamcommunity.com/profiles/76561197960265968

Sometimes the above request will return whether the player is VAC banned or not, but in some cases, a reply is sent from the server referring you to a URL with the players steam community name.

For the above steamid, it returns the following HTTP packet:

Code:
HTTP/1.1 302 Found
Date: Tue, 27 Jan 2009 03:32:13 GMT
Server: Apache/2.2.3 (Debian) mod_ssl/2.2.3 OpenSSL/0.9.8c
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Location: http://steamcommunity.com/id/kamekazika/
Content-Length: 0
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8
From this packet, you parse the location link http://steamcommunity.com/id/kamekazika/ and request it. This link will contain the VAC ban status.
__________________

Last edited by Bugsy; 01-27-2009 at 21:55.
Bugsy is offline