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

PSS-Live Protect Ip Classes (v1.0)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
K1d0x
Senior Member
Join Date: Apr 2012
Location: Copenhagen, Denmark
Old 07-25-2012 , 10:42   PSS-Live Protect Ip Classes (v1.0)
Reply With Quote #1

Description: This plugin offer a protection for all classes of ip to be banned, this protection is available for all admins from your server, not exclude any admin. The plugin verify first time if is added command amx_addban and next if is added a class of ip, if arguments are true then the plugin block command amx_addban !

Installation:
  1. add .amxx file in addons/amxmodx/plugins
  2. add .sma file in addons/amxmodx/scripting
  3. add line PSS-Live_P_IC.amxx in plugins.ini from addons/amxmodx/configs

How it works?:
  • When an admin type in him console amx_addban or admin_addban command will be checked by this plugin, and if contain a class of ip or is a class will be print an message in console + block continue

Cvars:
pss-live_block_ban_class
  • 1 - the plugin is enabled
  • 0 - the plugin is disabled

Change log:
Quote:
1.0 - first release
Notes: command amx_addban is verified only if user who typed the command is an admin
Attached Files
File Type: sma Get Plugin or Get Source (PSS-Live_P_IC.sma - 1250 views - 2.2 KB)

Last edited by K1d0x; 07-25-2012 at 11:32.
K1d0x is offline
Send a message via Yahoo to K1d0x Send a message via Skype™ to K1d0x
P1raten
Senior Member
Join Date: Feb 2010
Old 12-01-2012 , 14:12   Re: PSS-Live Protect Ip Classes (v1.0)
Reply With Quote #2

Why use this when you can just the "a" flag on your admins?

In case you need to refresh your memory:
Quote:
; Access flags:
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
__________________
No salvation. Only madness.
P1raten is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 12-01-2012 , 18:13   Re: PSS-Live Protect Ip Classes (v1.0)
Reply With Quote #3

This is kind of useless, if you need to a more advanced hierarchy just use this plugin: Admin Hierarchy v0.2
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 12-08-2012 , 20:01   Re: PSS-Live Protect Ip Classes (v1.0)
Reply With Quote #4

Quote:
Originally Posted by K1d0x View Post
Description: This plugin offer a protection for all classes of ip to be banned, this protection is available for all admins from your server, not exclude any admin. The plugin verify first time if is added command amx_addban and next if is added a class of ip, if arguments are true then the plugin block command amx_addban !

Installation:
  1. add .amxx file in addons/amxmodx/plugins
  2. add .sma file in addons/amxmodx/scripting
  3. add line PSS-Live_P_IC.amxx in plugins.ini from addons/amxmodx/configs

How it works?:
  • When an admin type in him console amx_addban or admin_addban command will be checked by this plugin, and if contain a class of ip or is a class will be print an message in console + block continue

Cvars:
pss-live_block_ban_class
  • 1 - the plugin is enabled
  • 0 - the plugin is disabled

Change log:
Notes: command amx_addban is verified only if user who typed the command is an admin
PLUGIN : Useless
Installation : every1 knows how to intall a plugin <_<
__________________
BLacking98 is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 12-08-2012 , 20:02   Re: PSS-Live Protect Ip Classes (v1.0)
Reply With Quote #5

Quote:
Originally Posted by BLacking98 View Post
PLUGIN : Useless
Installation : every1 knows how to intall a plugin <_<
Wrong!
Not everyone knows how to install a plugin, when I start, I dont even know what a plugin is..
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 12-17-2012 , 08:01   Re: PSS-Live Protect Ip Classes (v1.0)
Reply With Quote #6

Quote:
Originally Posted by quilhos View Post
Wrong!
Not everyone knows how to install a plugin, when I start, I dont even know what a plugin is..
I didn't know aswell but there are a lot of tutorials of how to install plugins!

A Tutorial Video that my clan made (watch in 480p)
__________________

Last edited by BLacking98; 12-17-2012 at 08:01.
BLacking98 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-09-2016 , 05:54   Re: PSS-Live Protect Ip Classes (v1.0)
Reply With Quote #7

Code:
if(get_pcvar_num(gBlockBanClass) == 1 || (equali(szCmd, "amx_addban") || equali(szCmd, "admin_addban")))
Should be
Code:
if(get_pcvar_num(gBlockBanClass) == 1 && (equali(szCmd, "amx_addban") || equali(szCmd, "admin_addban"))) {
Right now, your cvar is useless.

Name max len is cs is 32, not 64. Also use charsmax().

PHP Code:
if((containi(szAdminAuthId"STEAM_0:") != -1)) { 
That looks like a check for non steam servers. If you are running a steam only one, this condition will be always true. So, remove it.

Unapproved until you make the changes(section needs to be cleaned).
__________________
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 22:37.


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