Raised This Month: $ Target: $400
 0% 

dynamic ban


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
VSA
BANNED
Join Date: Feb 2009
Old 03-28-2009 , 15:14   dynamic ban
#1

i try to make a plugin that ban players with dynamic ip, but iw wont work, i cant compile it...
Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    register_plugin("Dynamic Ban", "1.0", "VSA")

    register_concmd("amx_dynban", "cmd_ban", ADMIN_BAN, "<target>")
}

public client_connect(id)
{
    new ban[32]
    get_user_info(id, "ban", ban, 31)
    
    if(ban == 1)
    {
        client_cmd(id, "disconnect")
    }
    return PLUGIN_HANDLED
}

public cmd_ban(id, level, cid)
{
        if (!cmd_access(id, level, cid, 3))
    {          
            return PLUGIN_HANDLED
    }
    else
    {
        new Arg[32]

        new player = cmd_target(id, Arg, 1)
        if(!player)
            return PLUGIN_HANDLED
    }
    else
    {
        client_cmd(id, "setinfo ban 1;disconnect")
    
    return PLUGIN_HANDLED
}
what is wrong???
VSA is offline
 



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 09:03.


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