Is user banned?
How can i get this one? Is this possible?
How can i know, is this STEAM_ID or IP address banned on the server? |
Re: Is user banned?
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 |
Re: Is user banned?
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
|
Re: Is user banned?
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 ! :wink: |
Re: Is user banned?
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. |
Re: Is user banned?
Thanks to all.
It's sad, that there is no interface to deal with it. So, will deal with a banned.cfg file. :) |
| All times are GMT -4. The time now is 06:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.