AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   dynamic ban (https://forums.alliedmods.net/showthread.php?t=88734)

VSA 03-28-2009 15:14

dynamic ban
 
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 03-28-2009 15:15

Re: dynamic ban
 
and pls dont lock and delete my topics...

[ --<-@ ] Black Rose 03-28-2009 15:27

Re: dynamic ban
 
just ban their steamid.

One 03-28-2009 15:29

Re: dynamic ban
 
PHP Code:

if (ban,id == 1

??

Exolent[jNr] 03-28-2009 17:09

Re: dynamic ban
 
Quote:

Originally Posted by Superiority (Post 791491)
just ban their steamid.


VSA 03-29-2009 05:45

Re: dynamic ban
 
i have non steam server

VSA 03-29-2009 06:20

Re: dynamic ban
 
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...

Owyn 03-29-2009 06:21

Re: dynamic ban
 
get a ban already and find a non-steam amxx forum, topic will be trashed as soon as 1st moderator sees it.

[ --<-@ ] Black Rose 03-29-2009 09:33

Re: dynamic ban
 
Quote:

Originally Posted by VSA (Post 791977)
i have non steam server

SHAZAM!

alan_el_more 03-29-2009 09:39

Re: dynamic ban
 
Non Steam = Non Support


All times are GMT -4. The time now is 09:03.

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