Raised This Month: $ Target: $400
 0% 

MySQL Ban Management by JustinHoMi


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:         
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 08-01-2005 , 17:55   MySQL Ban Management by JustinHoMi
Reply With Quote #1

Code:
/* AMX Mod script.
*
* MySQL Ban Management
*  by JustinHoMi
* Ported to amxx by slmclarengt
*/
Code:
#include <amxmodx>
#include <amxmisc>
#include <dbi>
Ban to your MYSQL database! Use amx_ban and amx_ban providing Authid to place a ban and to lift a ban!

Changelog:



Difference from AMXBANS:
Bans more efficiently
Bans quickly
Bans to MySQL in a more readable way.
It's much more user-friendly to operate.


August 04 2005: Fixed Typos
December 14 2005: Added reasons
Attached Files
File Type: sma Get Plugin or Get Source (admin_ban_sql.sma - 1394 views - 10.3 KB)
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
Damocles
Member
Join Date: Jan 2005
Old 08-02-2005 , 08:54  
Reply With Quote #2

this may be EXACTLY what im looking for. I used to use amx_bans by Yomama but found that people that i had banned were still able to reconnect. I've had a look at the .sma but is there any chance you could expand a bit in terms of the exact functionality the plugin provides.

I could proably whip together some custom PHP pages to display the ban information on my website, just wanted to make sure this works ^^ hehe
Damocles is offline
algee2005
Member
Join Date: Jul 2005
Location: Germany
Old 08-02-2005 , 09:25  
Reply With Quote #3

oO is this not implemented in amxbans?
algee2005 is offline
Send a message via ICQ to algee2005 Send a message via AIM to algee2005 Send a message via MSN to algee2005 Send a message via Yahoo to algee2005
Damocles
Member
Join Date: Jan 2005
Old 08-02-2005 , 09:26  
Reply With Quote #4

this may be EXACTLY what im looking for. I used to use amx_bans by Yomama but found that people that i had banned were still able to reconnect. I've had a look at the .sma but is there any chance you could expand a bit in terms of the exact functionality the plugin provides.

I could proably whip together some custom PHP pages to display the ban information on my website, just wanted to make sure this works ^^ hehe
Damocles is offline
algee2005
Member
Join Date: Jul 2005
Location: Germany
Old 08-02-2005 , 09:29  
Reply With Quote #5

huh oh lol nvm
algee2005 is offline
Send a message via ICQ to algee2005 Send a message via AIM to algee2005 Send a message via MSN to algee2005 Send a message via Yahoo to algee2005
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-02-2005 , 09:40  
Reply With Quote #6

Please when you port something change it the right way....when the new release comes out this plugin will no longer work.
Quote:
Originally Posted by BAILOPAN
mysql_* - These natives have been removed entirely. Use DBI.
include <dbi> and change all mysql_ to dbi_
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 08-02-2005 , 16:39  
Reply With Quote #7

will do. I read that but when I was porting this plugin, i just forgot about it. New version is in my first post.
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
csv
New Member
Join Date: Jul 2005
Old 08-04-2005 , 04:57  
Reply With Quote #8

with a .php-front this would be very neat
csv is offline
Damocles
Member
Join Date: Jan 2005
Old 08-04-2005 , 11:21  
Reply With Quote #9

Quote:
Originally Posted by csv
with a .php-front this would be very neat
with a PHP front-end it would be starting to come similar to amx_bans, but i still maintain that amx_bans never worked 100%. When i used it banned people could still randomly reconnect. A streamlined version of the code...like this plugin, with some simple php interfaces would be great
Damocles is offline
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 08-04-2005 , 11:40  
Reply With Quote #10

You got an error in the amx_unbans:
You missed a ","
Code:
ip varchar(25) NOT NULL default ''[b],[/b]
Here is a working version:
Code:
CREATE TABLE amx_unbans (
   player_id varchar(17) NOT NULL default '',
   player_name varchar(33) NOT NULL default '',
   admin_id varchar(17) default NULL,
   admin_name varchar(33) default NULL,
   time_unbanned timestamp(14) NOT NULL,
   server varchar(25) NOT NULL default '',
   ip varchar(25) NOT NULL default '',
   admin_ban varchar(33) default NULL,
   length int(10) unsigned NOT NULL default '0'
 ) TYPE=MyISAM;
__________________
//ShadowLeader - 123
123 is offline
Reply



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 18:39.


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