Raised This Month: $51 Target: $400
 12% 

[REQ] Banned users list


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 12-13-2008 , 21:29   [REQ] Banned users list
Reply With Quote #1

Could somebody make a plugin to show banned users from banned_users.cfg and banned_ip.cfg with command in console or in motd?

Thank you
__________________
shustas is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 12-13-2008 , 21:35   Re: [REQ] Banned users list
Reply With Quote #2

listip
listid


They go to console.
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 12-13-2008 , 21:39   Re: [REQ] Banned users list
Reply With Quote #3

yes if you got rcon access...
__________________
shustas is offline
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 12-19-2008 , 13:14   Re: [REQ] Banned users list
Reply With Quote #4

Anyone?
__________________
shustas is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 12-19-2008 , 14:08   Re: [REQ] Banned users list
Reply With Quote #5

PHP Code:
#pragma semicolon 1

#include <sourcemod>

public OnPluginStart()
{
    
RegAdminCmd("listbans"Command_ListBansADMFLAG_BAN);
}

public 
Action:Command_ListBans(clientargs)
{
    
PrintToConsole(client"[SM] Listing bans:");

    new 
Handle:userFile OpenFile("cfg/banned_users.cfg""r");
    if (
userFile != INVALID_HANDLE)
    {
        
decl String:buffer[32];
        while (
ReadFileLine(userFilebuffersizeof(buffer)))
        {
            
PrintToConsole(clientbuffer);
        }

        
CloseHandle(userFile);
    }

    new 
Handle:ipFile OpenFile("cfg/banned_ip.cfg""r");
    if (
ipFile != INVALID_HANDLE)
    {
        
decl String:buffer[32];
        while (
ReadFileLine(ipFilebuffersizeof(buffer)))
        {
            
PrintToConsole(clientbuffer);
        }

        
CloseHandle(ipFile);
    }

    
PrintToConsole(client"[SM] Ban listing complete");
    return 
Plugin_Handled;

Use "listbans".

Last edited by bl4nk; 12-19-2008 at 14:11.
bl4nk is offline
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 12-19-2008 , 14:10   Re: [REQ] Banned users list
Reply With Quote #6

thanks, will test soon
__________________
shustas 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 14:02.


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