I think they asked for help not for speak!
Personaly If I open my login taiwan, you can see blockuser check, just read it, understand it and make it how you want.
-- BlockUser Check
IF(@Status=-10)
BEGIN
-- Get Block Limit Date AND Replace date text
DECLARE @Enddate varchar(max)
SELECT @EndDate = EndDate FROM Check_Ban WHERE UserUID = @UserUID
IF ( @@ROWCOUNT <> 0 )
BEGIN
-- Block Release
IF ( @Enddate <= @LoginTime )
BEGIN
SET @Status = 0
UPDATE Users_Master SET Status = @Status WHERE UserUID = @UserUID
DELETE FROM Check_Ban Where UserUID = @UserUID
END
END
END
I wrote this line with help of a friend since I needed an auto unban script. Check_Ban is a new table, and enddate is a colum on the table, use your own table!
You can change status to -5 or other, like you want!