[Help] IPban Mysql Sx's

06/18/2010 19:00 pintser#1
Hej im trying out Sx's,
but now i wonted to add a ipban.

does some 1 ahve it...
never did ipban in mysql..

:)
06/18/2010 20:09 _DreadNought_#2
No need to do it in mysql check out the one in hybrid's basic but working/bugless source thread and it was released in there
06/19/2010 07:35 Arcо#3
Just make a check at the login sequence.
if (GC.Soc.Endpoint == Banned ip)
{
return;
GC.Soc.Disconnect;
}
else
{
Login;
}
06/19/2010 13:41 ~Yuki~#4
Quote:
Originally Posted by .Arco View Post
Just make a check at the login sequence.
if (GC.Soc.Endpoint == Banned ip)
{
return;
GC.Soc.Disconnect;
}
else
{
Login;
}
Bah was just going to say that, but u were more quick than me (like 99% of the time)
06/19/2010 15:45 pintser#5
Quote:
Originally Posted by ~Yuki~ View Post
Bah was just going to say that, but u were more quick than me (like 99% of the time)
thanks for the replies,
but:
uu, i need the command that let it check the Mysql databse for ip, and read from there..

Could figure out the Clientdisconnect, only not to read/use mysql db.
06/21/2010 09:15 Arcо#6
Quote:
Originally Posted by pintser View Post
thanks for the replies,
but:
uu, i need the command that let it check the Mysql databse for ip, and read from there..

Could figure out the Clientdisconnect, only not to read/use mysql db.
I just gave you a good little ip ban right there :/
06/25/2010 15:17 prox32#7
this is probably an old post, but im curious where would u put this? to include it in the login sequence... in the DB or client or wat o.o
06/25/2010 17:31 pintser#8
u put it in Login check.