AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   AMXBans ban by SID (https://forums.alliedmods.net/showthread.php?t=129753)

Viera 06-16-2010 12:20

AMXBans ban by SID
 
Hi I edit cmdBan.inl and delete insert ip player in banning
after I edit check_player.inl:

After
Code:

135    SQL_ReadResult(query, 12, ban_type, 3)
I added


Code:

if(equali(ban_type, "S"))
                    {
                        get_user_authid(id, authid, 24)
                        if(!equal(player_steamid, authid))
                        {
                                return PLUGIN_HANDLED
                        }
                    }
                    else if(equali(ban_type, "SI"))
                    {
                        get_user_authid(id, authid, 24)
                        if(!equal(player_steamid, authid))
                        {
                                return PLUGIN_HANDLED
                        }
              }

But bans doesnt work... (if I don't insert player ip bans doesn't work).
How to edit to ban only steam without IP?

Viera 06-16-2010 17:29

Re: AMXBans ban by SID
 
ok, simple I want make to first look/search ban on steam if exist kick user.

fysiks 06-16-2010 18:04

Re: AMXBans ban by SID
 
This is for the AMX Bans plugins?

Viera 06-17-2010 05:34

Re: AMXBans ban by SID
 
yes amxbans 5.0

DruGzOG 06-17-2010 13:39

Re: AMXBans ban by SID
 
upgrade your amxbans.

Viera 06-18-2010 14:07

Re: AMXBans ban by SID
 
I don't wanna new 6.0 it's shit.

Kabuto 06-18-2010 14:30

Re: AMXBans ban by SID
 
I wonder it's
Quote:

if(equali(ban_type, "S"))
To
Quote:

if(equali(ban_type, "SI"))

DruGzOG 06-18-2010 14:49

Re: AMXBans ban by SID
 
Quote:

Originally Posted by Viera (Post 1212640)
I don't wanna new 6.0 it's shit.

you could always use 5.1b

Viera 06-19-2010 12:25

Re: AMXBans ban by SID
 
If I ban SI, IP and SI are saveing in sql, if S again IP and SID are save..
What I want to do:
If I banned someone on S or SI all players with steam with banned IP can play.
Now it's inpossible.

DruGzOG in 5.1b was change only website, not code of sma.


All times are GMT -4. The time now is 14:46.

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