Raised This Month: $51 Target: $400
 12% 

SLAG


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Expade
Junior Member
Join Date: Mar 2012
Location: Russian Federation
Old 09-10-2014 , 14:26   SLAG
Reply With Quote #1

SLAG: Half-Life Banning System

Author: Expade
Version: 1.40

Features:
  • MySQL database for storing banned AuthIDs.
  • Automatic table creation.
  • By default commands require 'm' access flag.

Commands:
  • slag_add <authid> [reason] - bans authid.
  • slag_remove <authid> - unbans authid.
  • slag_list [page] - shows list of banned authids.

CVARs:
  • slag_hostname "127.0.0.1" - host running MySQL.
  • slag_username "root" - user name used to connect to MySQL.
  • slag_password "" - pass used to connect to MySQL.
  • slag_database "SLAG" - database name to use.
  • slag_immunity "ab" - if player has one of these access rights flags we allow him to enter without checking for a AuthID ban.

ChangeLog
Attached Files
File Type: sma Get Plugin or Get Source (slag.sma - 570 views - 11.0 KB)
File Type: txt slag.txt (1.3 KB, 214 views)
__________________

Last edited by Expade; 02-21-2015 at 13:22. Reason: Updated to 1.40
Expade is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-10-2014 , 14:31   Re: SLAG
Reply With Quote #2

AdvancedBans by exolent already has mysql saving( if I'm right ).
__________________
HamletEagle is offline
Expade
Junior Member
Join Date: Mar 2012
Location: Russian Federation
Old 09-10-2014 , 14:32   Re: SLAG
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
AdvancedBans by exolent already has mysql saving( if I'm right ).
I don't really like Advanced Bans. My plugin is more simple.
__________________
Expade is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-10-2014 , 15:12   Re: SLAG
Reply With Quote #4

It is not safe to require version 1.8.3 because it is not a stable version yet. Also, upload the .sma file directly to your post instead of (or in addition to) using an archive. It makes it easier to view your plugin.

EDIT: It looks like the only thing that you are using that is specific to 1.8.3 (as far as the compiler is concerned) is the TrieSetString(). Simply change it to check TrieKeyExists() prior to setting the string to duplicate the functionality.

If you want to make it compatible to both 1.8.2 and 1.8.3, you can use the preprocessor to do it. Simply use the AMXX_VERSION_NUM to determine which version on which it is being compiled. 182 for 1.8.2 and 183 for 1.8.3
__________________

Last edited by fysiks; 09-10-2014 at 16:28.
fysiks is online now
Expade
Junior Member
Join Date: Mar 2012
Location: Russian Federation
Old 11-30-2014 , 13:41   Re: SLAG
Reply With Quote #5

Done
__________________
Expade is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-30-2014 , 19:54   Re: SLAG
Reply With Quote #6

You only have two files, post the two files as attachments individually. A zip file is just a pain.
__________________
fysiks is online now
Expade
Junior Member
Join Date: Mar 2012
Location: Russian Federation
Old 12-01-2014 , 02:11   Re: SLAG
Reply With Quote #7

"Roger that!". So, now my plugin will be approved?
__________________
Expade is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 12-01-2014 , 02:26   Re: SLAG
Reply With Quote #8

You can add command like slag_adds which make screenshot on player-side ("snapshot" cmd) before ban him.
Phant is offline
Send a message via ICQ to Phant
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 12-01-2014 , 03:20   Re: SLAG
Reply With Quote #9

Quote:
You can add command like slag_adds which make screenshot on player-side ("snapshot" cmd) before ban him.
Why we need make screenshot on player-side? SLOWHACKING! SLOWHACKING! SLOWHACKING!
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 12-01-2014 at 03:20.
GordonFreeman (RU) is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-01-2014 , 03:29   Re: SLAG
Reply With Quote #10

Quote:
Originally Posted by Expade View Post
"Roger that!". So, now my plugin will be approved?
We don't know. Maybe, if an approver starts checking it.
__________________
HamletEagle 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 23:43.


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