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

Advanced Bans (Real Time) by Exolent


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-01-2009 , 14:25   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #421

Code:
        new ban
        if ( contain( KillerAuthID[ id ], "." ) > 0 )
            ban = 1
        else if ( contain( KillerAuthID[ id ], ":" ) > 0 )
            ban = 2
        else
            ban = 0

        if ( !get_pcvar_num( gCVARBanType ) )
            ban = 0

        get_user_name( id, KillerName[ id ], 31 )
        new rtn = exec_CheckKill( id, ban )

        if ( rtn < 1 )
        {
            if ( TeamKills[ id ] >= max_tk )
            {
                if ( ban )
                    server_cmd( "amx_ban%s ^"%s^" ^"%i^" ^"Reason Here^"", ( ban == 1 ) ? "ip" : "", KillerAuthID[ id ], get_pcvar_num( gCVARBanTime ) )
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 07-01-2009 at 15:58.
Exolent[jNr] is offline
Demonic
Junior Member
Join Date: Mar 2007
Location: Finland
Old 07-01-2009 , 15:16   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #422

Thanks. But I tested it... still not working.

Probably there is other part which is important for bannings... hm...

Maybe I give a bit bigger part of the code...

Code:
check_teamkills( id )
{
    if ( !check_immunity( id ) )
    {
        new max_tk = get_pcvar_num( gCVARTeamKills )
        TeamKills[ id ] = min( ++TeamKills[ id ], max_tk )
        check_menus( id )

        new ban
        if ( contain( KillerAuthID[ id ], "." ) > 0 )
            ban = 1
        else if ( contain( KillerAuthID[ id ], ":" ) > 0 )
            ban = 2
        else
            ban = 0

        if ( !get_pcvar_num( gCVARBanType ) )
            ban = 0

        get_user_name( id, KillerName[ id ], 31 )
        new rtn = exec_CheckKill( id, ban )

        if ( rtn < 1 )
        {
            if ( TeamKills[ id ] >= max_tk )
            {
                if ( ban )
                    server_cmd( "amx_ban%s ^"%s^" ^"%i^" ^"Reason here^"", ( ban == 1 ) ? "ip" : "", get_pcvar_num( gCVARBanTime ), KillerAuthID[ id ] )

                if ( is_user_connected( id ) )
                {
                    new line1[ 32 ], line2[ 32 ], line3[ 32 ]
                    formatex( line1, sizeof( line1 ) - 1, "%L", id, !ban ? "ATAC_KICKED_LINE1" : "ATAC_BANNED_LINE1" )
                    formatex( line2, sizeof( line2 ) - 1, "%L", id, !ban ? "ATAC_KICKED_LINE2" : "ATAC_BANNED_LINE2" )
                    formatex( line3, sizeof( line3 ) - 1, "%L", id, !ban ? "ATAC_KICKED_LINE3" : "ATAC_BANNED_LINE3" )
                    kick_ML( id, line1, line2, line3 )
                }
            }
        }
    }
}
Those formatex things seem to be suspicious...
__________________
DEU31's forum
R.I.P. Stratovarius ( 2.4.2008 )

Demonic is offline
Send a message via MSN to Demonic
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-01-2009 , 15:58   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #423

Sorry, little error in my code.
Should work now.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Demonic
Junior Member
Join Date: Mar 2007
Location: Finland
Old 07-01-2009 , 17:31   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #424

Oh... I see..
Now it works. Thanks very much.
__________________
DEU31's forum
R.I.P. Stratovarius ( 2.4.2008 )

Demonic is offline
Send a message via MSN to Demonic
Jellric
Member
Join Date: Dec 2007
Old 07-03-2009 , 14:39   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #425

I think the author has abandoned the plugin. I haven't been able to get any help.

Even though it doesn't work consistently it's still the only thing I have for temp bans so I am still using it. I just wish it would work all the time everytime and you could ban without using the nick, just STEAM ID. That's too much typing and looking up information. I like to ban right away after the infraction without long delays.

One other problem I just discovered is that the plugin is banning my bots as they join the server which is wreaking havok. I had just banned a player and spelled his name wrong so that is the only thing I can trace the origin of the problem to. When I disable the plugin everything works normally.

I tried just editing the banned file to remove the ban of the player which seemed to be causing the problem but the problem continued.

The only solution I could find was to delete the entire banned file and enter the bans manually again into the console which was EXTREMELY tedious but it worked. I hope I don't ever have to do that again because it is just too much work.

Last edited by Jellric; 07-03-2009 at 22:09. Reason: bsdfds
Jellric is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-06-2009 , 23:59   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #426

Cuz i dont have good english i dont understand some things, for example:

Quote:
It uses Real Time on the server (Eg. Banned for 10 minutes, you will be unbanned 10 minutes later, regardless of map changing).
What means real time on the server? the amx_banip or amx_ban Default from amxx dont ban in real time? what is the difference? i rly dont catch it.

And...

PHP Code:
// if you must have a maximum amount of bans to be compatible with AMXX versions before 1.8.0
// change this number to your maximum amount
// if you would rather have unlimited (requires AMXX 1.8.0 or higher) then set it to 0
#define MAX_BANS 0 
So... if i am using a version before 1.8.0 i cant have MAX_BANS 0? i have to put a number of maximum amount of bans... for example "50"... i have a limit?

Quote:
Add advanced_bans.amxx at the top of the file!!!
What means the top of the file? THE REAL TOP of the files or... the top in:

Quote:
; Custom - Add 3rd party plugins here
?

thx to much
Alucard^ is offline
Send a message via Skype™ to Alucard^
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 07-07-2009 , 09:58   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #427

real top of the files is better
KadiR is offline
Jellric
Member
Join Date: Dec 2007
Old 07-07-2009 , 17:51   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #428

I had such high hopes for this plugin.

Ugh.

Last edited by Jellric; 07-07-2009 at 21:46. Reason: Uninstalling
Jellric is offline
liryck
Senior Member
Join Date: Mar 2007
Location: Venezuela
Old 07-13-2009 , 00:54   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #429

srry i ban permanent a player for accident the only i have in log is this

L 07/13/2009 - 00:15:44: - mile<3lupe <STEAM_0:1:8580362> banned Todo_! <STEAM_0:1:12879706> || Reason: "AFK" || Ban Length: Permanent Ban

i try amx_unban STEAM_0:1:8580362 but no luck how i unbann him :S?
liryck is offline
Send a message via MSN to liryck
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 07-13-2009 , 03:47   Re: Advanced Bans (Real Time) by Exolent
Reply With Quote #430

Try amx_unban "STEAM_0:1:8580362".
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN 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:44.


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