Raised This Month: $ Target: $400
 0% 

sql ban managment


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
asd13
Member
Join Date: Apr 2009
Old 10-24-2009 , 18:49   sql ban managment
Reply With Quote #1

Hello.
Can anyone do a code that manages bans via sql.
amx_ban, amx_banip, amx_addban adds all info in sql and then user gets kicked.
amx_unban removes ban from sql.
When user tries to connect server and hes banned he gets kicked with message "banned".
sql table would look like this.
Code:
CREATE TABLE `sql_bans` (
  `id` int(255) NOT NULL auto_increment,
  `player` varchar(32) NOT NULL,
  `steamid` varchar(32) NOT NULL,
  `ip` varchar(32) NOT NULL,
  `date` varchar(32) NOT NULL,
  `reason` varchar(32) NOT NULL,
  `duration` varchar(32) NOT NULL,
  `admin` varchar(32) NOT NULL,
  PRIMARY KEY  (`id`)
)
Please dont recomend amxbans or advanced bans to me.
asd13 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode