Banning Script

Newbie Spellweaver
Joined
Sep 20, 2011
Messages
35
Reaction score
1
can someone share Ban script for GM banning...
i cant find it in here...

already use search button..

pls help me.
 
How about you work out your own solution? Simple changing their pass to something they can't enter in to the client would be a functioning ban.

Code:
UPDATE RF_User.dbo.tbl_rfaccount SET password = CONVERT(binary, '%@$%#^$#@^$#@%^$'), customIsBanned  = 1 WHERE username = CONVERT(binary, 'username');

To load banned accounts,

Code:
SELECT * FROM RF_User.dbo.tbl_rfaccount WHERE customIsBanned = 1 ORDER BY id DESC;

Get your script to also load their IP address from their account so you can add it to a firewall.

Now the right way to do it without knowing anything about how bans work would be to create a new account and fail your fireguard attempts until you get auto-banned. Load that table, look at how the ban was issued, then create a script to emulate that.

Problem solved either way.
 
Upvote 0
How about you work out your own solution? Simple changing their pass to something they can't enter in to the client would be a functioning ban.

Code:
UPDATE RF_User.dbo.tbl_rfaccount SET password = CONVERT(binary, '%@$%#^$#@^$#@%^$'), customIsBanned  = 1 WHERE username = CONVERT(binary, 'username');

To load banned accounts,

Code:
SELECT * FROM RF_User.dbo.tbl_rfaccount WHERE customIsBanned = 1 ORDER BY id DESC;

Get your script to also load their IP address from their account so you can add it to a firewall.

Now the right way to do it without knowing anything about how bans work would be to create a new account and fail your fireguard attempts until you get auto-banned. Load that table, look at how the ban was issued, then create a script to emulate that.

Problem solved either way.

Code:
UPDATE RF_User.dbo.tbl_rfaccount SET password = CONVERT(binary, '%@$%#^$#@^$#@%^$'), [COLOR="Red"]customIsBanned  = 1[/COLOR] WHERE [COLOR="red"]username[/COLOR] = CONVERT(binary, 'username');
Red Mark
1.customIsBanned = 1 <<Table isnt exist
2.username <<< table isnt exist only "id" exist.

@Ron can u help me how to pick ID's serial using SQL querry?
 
Upvote 0
Sorry, account should be ID in this case.

You will need to manually add the column to the table. It was only an example of what you could do. Also to update, you would use the account name instead of a row ID as there are no row ID numbers on the rf_account table.

Sorry for the wrong info, haven't looked at the databases in a while.
 
Upvote 0
Back