Raised This Month: $ Target: $400
 0% 

Is user banned?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lonely
Junior Member
Join Date: Oct 2006
Old 04-18-2007 , 01:43   Is user banned?
Reply With Quote #1

How can i get this one? Is this possible?
How can i know, is this STEAM_ID or IP address banned on the server?
Lonely is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-18-2007 , 06:30   Re: Is user banned?
Reply With Quote #2

hmm, i think if the SteamID or IP is banned, he will never be connected...!?
So, you can't work with the SteamID/IP..maybe i'm wrong...

greetz regalis
__________________
regalis is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 04-18-2007 , 10:56   Re: Is user banned?
Reply With Quote #3

if they are banned wont let them connect to server in first place but I am sure the IP/STEAM_ID's are stored somewhere and you could look through them if you wanted to for some reason
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Old 04-18-2007, 12:09
imported_storm007fire
This message has been deleted by imported_storm007fire. Reason: Shit wrong thread ^^
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-18-2007 , 12:45   Re: Is user banned?
Reply With Quote #4

If an player is banned by IP go in ..\steamapps\..\..\cstrike and find a file listip.cfg !

Else if an player is banned by Steam_Id go in ..\steamapps\..\..\cstrike and find a file banned.cfg !
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-19-2007 , 04:58   Re: Is user banned?
Reply With Quote #5

He asking for a scripting help. I.e. he want to do it with plugin. Also non-permanent bans isn't written into that files so in general file reading will not work for all bans.

I'd say that this is possible but not that simple / not that reliable.

Method #1 (not that reliable but comparatively simple)

You have to send listid/listip command to a server using RCon protocol and sockets module and then parse/check recieved data.
Here are links that could be helpful to learn more about that.

RCon protocol details: http://collective.valve-erc.com/inde...46620-20111500
Simple sockets tutorial: http://forums.alliedmods.net/showthread.php?t=41913
HLTV RCon protocol/socket use code snippet: http://forums.alliedmods.net/showpos...5&postcount=28


Method #2 (reliable but more complicated)

Alternatively you can parse memory or hook server console output "virtually" and parse it on listid/listip command execution but this is require more deep knowledge and separate amxx module/metamod plugin.

Last edited by VEN; 04-19-2007 at 05:10.
VEN is offline
Lonely
Junior Member
Join Date: Oct 2006
Old 04-22-2007 , 23:20   Re: Is user banned?
Reply With Quote #6

Thanks to all.
It's sad, that there is no interface to deal with it.
So, will deal with a banned.cfg file.
Lonely 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 06:43.


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