PDA

View Full Version : AMXBans ban by SID


Viera
06-16-2010, 12:20
Hi I edit cmdBan.inl and delete insert ip player in banning
after I edit check_player.inl:

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



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
ok, simple I want make to first look/search ban on steam if exist kick user.

fysiks
06-16-2010, 18:04
This is for the AMX Bans plugins?

Viera
06-17-2010, 05:34
yes amxbans 5.0

DruGzOG
06-17-2010, 13:39
upgrade your amxbans.

Viera
06-18-2010, 14:07
I don't wanna new 6.0 it's shit.

Kabuto
06-18-2010, 14:30
I wonder it's
if(equali(ban_type, "S"))
To
if(equali(ban_type, "SI"))

DruGzOG
06-18-2010, 14:49
I don't wanna new 6.0 it's shit.

you could always use 5.1b

Viera
06-19-2010, 12:25
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 (https://forums.alliedmods.net/member.php?u=32290) in 5.1b was change only website, not code of sma.