Raised This Month: $ Target: $400
 0% 

dynamic ban


Post New Thread Closed Thread   
 
Thread Tools Display Modes
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
VSA
BANNED
Join Date: Feb 2009
Old 03-28-2009 , 15:15   Re: dynamic ban
#2

and pls dont lock and delete my topics...
VSA is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-28-2009 , 15:27   Re: dynamic ban
#3

just ban their steamid.
[ --<-@ ] Black Rose is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-28-2009 , 15:29   Re: dynamic ban
#4

PHP Code:
if (ban,id == 1
??
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-28-2009 , 17:09   Re: dynamic ban
#5

Quote:
Originally Posted by Superiority View Post
just ban their steamid.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
VSA
BANNED
Join Date: Feb 2009
Old 03-29-2009 , 05:45   Re: dynamic ban
#6

i have non steam server
VSA is offline
VSA
BANNED
Join Date: Feb 2009
Old 03-29-2009 , 06:20   Re: dynamic ban
#7

Code:
#include <amxmodx>
#include <amxmisc>

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

public client_connect(id)
{
    new ban[32]
    get_user_info(id, "ban", ban, 31)
    
    if(ban, id == 1)
    {
        client_cmd(id, "disconnect")
    }
    return PLUGIN_HANDLED
}
this part is ok, i can compile it, but i cant make the cmd for this plugin...
VSA is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 03-29-2009 , 06:21   Re: dynamic ban
#8

get a ban already and find a non-steam amxx forum, topic will be trashed as soon as 1st moderator sees it.
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-29-2009 , 09:33   Re: dynamic ban
#9

Quote:
Originally Posted by VSA View Post
i have non steam server
SHAZAM!
[ --<-@ ] Black Rose is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 03-29-2009 , 09:39   Re: dynamic ban
#10

Non Steam = Non Support
__________________
alan_el_more is offline
Closed Thread



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