Procedure structure for [WZ_ACCOUNT_LOGIN_EXEC]
Code:-- check if ip banned declare @idccid int SELECT @idccid=cid FROM BannedIP WHERE ip=@in_IP if (@@ROWCOUNT != 0) begin select 3 as LoginResult, 0 as CustomerID, 998 as AccountStatus return end
BannedIP Table:
(You can edit the table how you want it)Code:CREATE TABLE [dbo].[BannedIP]( [id] [int] IDENTITY(1,1) NOT NULL, [cid] [int] NOT NULL, [ip] [varchar](15) NOT NULL, [reason] [varchar](max) NOT NULL, [bannedby] [int] NOT NULL, [date] [datetime] NOT NULL ) ON [PRIMARY]
You can also change the error message on the launcher for the grade 998
RSUpdate/Updater.cpp
RSUpdate/WOLoginHelper.cppCode:case CLoginHelper::ANS_IPBANNED: loginErrMsg_ = "Your IP has been banned"; break;
Code:if(AccountStatus == 998) { loginAnswerCode = ANS_IPBANNED; return; }



Reply With Quote![[Release] Simple IP Ban](http://ragezone.com/hyper728.png)


