Raised This Month: $32 Target: $400
 8% 

[Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)


Post New Thread Reply   
 
Thread Tools Display Modes
reaper4231
Junior Member
Join Date: Aug 2012
Location: Quebec
Old 08-04-2012 , 17:03   Re: [Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)
Reply With Quote #21

did i have to put the sm_limit_ban_duration.smx and the lbd_sourcebans.smx to work or just the lbd_sourcebans?
reaper4231 is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-04-2012 , 18:11   Re: [Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)
Reply With Quote #22

You need lbd_basebans or lbd_sourcebans if you want Limit Ban Duration to be able to effect your admin menus. Otherwise, just sm_limit_ban_duration will suffice if you only allow the console/chat option. (sm_ban, !ban, or /ban). Plugins can't interact with another plugin's menu, so I had to create a Limit Ban Duration version to add support.
__________________
thetwistedpanda is offline
reaper4231
Junior Member
Join Date: Aug 2012
Location: Quebec
Old 08-04-2012 , 18:24   Re: [Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)
Reply With Quote #23

thanks
reaper4231 is offline
reaper4231
Junior Member
Join Date: Aug 2012
Location: Quebec
Old 08-05-2012 , 01:04   Re: [Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)
Reply With Quote #24

"Limit_Ban_Durations"
{
//-=-=-=-=-=-=-=-=-=-=-=-=-=
//"#_of_minutes"
//{
// "override" "Limit_Ban_Duration"
// "flags" "flag1,flag2,flag3"
// "display" "X Minutes/Hours/Seconds/Years/Months/Jiggawatts"
//}
//-=-=-=-=-=-=-=-=-=-=-=-=-=
//- #_of_minutes is the maximum value for that rank. If you give an admin access to "5", they can ban up to 5 minutes, but no more.
//
//- "0" seconds indicates a permanent punishment. Only one "0" entry will be considered.
//
//- Both "override" and "flags" definitions are necessary when restricting a specific duration. Using one without the other will result in undesired behavior.
// - You're not required to use the "override" or even have Overrides set up on your server, but the definition is necessary for the method being used.
// - When in doubt, just use an override of "Limit_Ban_Duration". Set it and forget it the saying goes!
// - "flags" are checked when the user does not have access to the provided "override", so a bogus override allows for just flag usage.
// - When specifying multiple flags, users must possess all flags to access the specific duration.
// - For example, "flags" "a,b,c" will require the user possess all three flags.
//
//- An "override" and "flags" definition of "" will result in no restriction being placed upon that length.
// - Do not do silly things such as block off "5" minutes yet allow "15" minutes; the plugin will durations arrange times from low to high and assumes you're not an idiot.
//
//- The "display" parameter is displayed to clients when accessing the ban parameter is a modified ban plugin.
//-=-=-=-=-=-=-=-=-=-=-=-=-=

"5"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "5 Minutes"
}
"10"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "10 Minutes"
}
"15"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "15 Minutes"
}
"30"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "30 Minutes"
}
"45"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "45 Minutes"
}
"60"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "60 Minutes"
}
"120"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "2 Hours"
}
"180"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "3 Hours"
}
"360"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "6 Hours"
}
"720"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "12 Hours"
}
"1440"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "24 Hours"
}
"2880"
{
"override" "Limit_Ban_Duration"
"flags" "d"

"display" "2 Days"
}
"4320"
{
"override" "Limit_Ban_Duration"
"flags" "o"

"display" "3 Days"
}
"5760"
{
"override" "Limit_Ban_Duration"
"flags" "o"

"display" "4 Days"
}
"7200"
{
"override" "Limit_Ban_Duration"
"flags" "o"

"display" "5 Days"
}
"8640"
{
"override" "Limit_Ban_Duration"
"flags" "o"

"display" "6 Days"
}
"10080"
{
"override" "Limit_Ban_Duration"
"flags" "o"

"display" "7 Days"
}
"20160"
{
"override" "Limit_Ban_Duration"
"flags" "o"

"display" "2 Weeks"
}
"30240"
{
"override" "Limit_Ban_Duration"
"flags" "o"

"display" "3 Weeks"
}
"40320"
{
"override" "Limit_Ban_Duration"
"flags" "o"

"display" "4 Weeks"
}
"0"
{
"override" "Limit_Ban_Duration"
"flags" "o"

"display" "Permanent"
}
}

i have the d and the o but the ban option dont appear in the menu
reaper4231 is offline
away000
Veteran Member
Join Date: Sep 2010
Old 08-07-2012 , 22:19   Re: [Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)
Reply With Quote #25

Can u make so a specified flag (the extra flags) have X time max ban lenght,
another flag have Y time
and another have Z time?

So i can have diferent max lenght for diferent admin groups (and diferent admin acess...)
__________________
away000 is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-07-2012 , 23:14   Re: [Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)
Reply With Quote #26

away000, you can simply create duplicate entries for your desired times and restrict them to the desired flags. Granted I never tried it, but I don't know of anything in the code that would prevent it from functioning.
__________________

Last edited by thetwistedpanda; 08-07-2012 at 23:15.
thetwistedpanda is offline
away000
Veteran Member
Join Date: Sep 2010
Old 08-07-2012 , 23:18   Re: [Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)
Reply With Quote #27

Can u give me a example of how to do it in the source? (with times and flags included in example plz ;D)
__________________
away000 is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-07-2012 , 23:37   Re: [Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)
Reply With Quote #28

You merely take the configuration file that has the desired times and configure it how you want... Looking at the documentation I provided at the top of the file, the plugin does what you want. If you want three different flags to have the same time, if you're not going to do it properly and use overrides in SourceMod, you duplicate said time entry three times and assign each one the different flag. This should work without issue within the mod due to permissions checks being prior to time checks.
__________________
thetwistedpanda is offline
Suckah
Member
Join Date: Mar 2012
Old 08-11-2012 , 16:16   Re: [Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)
Reply With Quote #29

This plugin is EXACTLY what I've wanted as core functionality for a long time now! Thank you! You don't want just anyone to be able to permban.
But bans isn't showing up in the admin menu, when using the custom basebans.smx
No idea what I'm doing wrong, double checked if all the files are in place, the config file is created, cvars are all 1, plugins list no errors, .ini filled in...

Code:
[SM] Listing 57 plugins:
01 "SMAC AutoTrigger Detector" (0.7.7.5) by GoD-Tony
02 "Sound Commands" (1.4.4) by AlliedModders LLC
03 "Advertisements" (0.5.5) by Tsunami
04 "SwapTeam" (1.2.5) by MistaGee Fixed by Rogue
05 "Fun Votes" (1.4.4) by AlliedModders LLC
06 "In-game Help Menu" (0.3) by chundo
07 "Player-Teleport by Dr. HyperKiLLeR" (1.2.0.0) by Dr. HyperKiLLeR
08 "Basic Info Triggers" (1.4.4) by AlliedModders LLC
09 "SMAC Anti-Speedhack" (0.7.7.5) by GoD-Tony
10 "Client Preferences" (1.4.4) by AlliedModders LLC
11 "[THC RPG] Total HardCore RPG" (0.8.6_stable) by ArsiRC
12 "SMAC Command Monitor" (0.7.7.5) by GoD-Tony, psychonic, Kigen
13 "Dissolve" (1.0.0.1) by L. Duke
14 "Rock The Vote" (1.4.4) by AlliedModders LLC
15 "SMAC Client Protection" (0.7.7.5) by GoD-Tony, psychonic, Kigen
16 "Reserved Slots" (1.4.4) by AlliedModders LLC
17 "Redie 4 SourceMod" (1.3) by MeoW
18 "Fun Commands" (1.4.4) by AlliedModders LLC
19 "Player Commands" (1.4.4) by AlliedModders LLC
20 "SMAC ConVar Checker" (0.7.7.5) by GoD-Tony, psychonic, Kigen
21 "Basic Chat" (1.4.4) by AlliedModders LLC
22 "M3Respawn - Respawn a dead player" (0.1.1) by M3Studios, Inc.
23 "Basic Comm Control" (1.4.4) by AlliedModders LLC
24 "Nextmap" (1.4.4) by AlliedModders LLC
25 "Anti-Flood" (1.4.4) by AlliedModders LLC
26 "Admin Help" (1.4.4) by AlliedModders LLC
27 "Map Nominations" (1.4.4) by AlliedModders LLC
28 "Basic Votes" (1.4.4) by AlliedModders LLC
29 "SMAC Aimbot Detector" (0.7.7.5) by GoD-Tony
30 "MapChooser" (1.4.4) by AlliedModders LLC
31 "Pinion Adverts" (1.4.2) by LumiStance
32 "SaveChat" (SaveChat_1.2.1) by citkabuto
33 "No Block" (1.0.0.0) by sslice
34 "SMAC Rcon Locker" (0.7.7.5) by GoD-Tony, Kigen
35 "Players Votes" (1.5.0) by The Resident, pZv!
36 "SourceMod Anti-Cheat" (0.7.7.5) by GoD-Tony, psychonic
37 "Spawn & Kill protection" (1.3.0) by Berni, Chanz
38 "Quake Sounds" (2.7) by dalto, Grrrrrrrrrrrrrrrrrrr, and psychonic
39 "Zstuck" (0.4) by SoZika
40 "Admin loggin" (1.0) by vIr-Dan
41 "Very Basic High Ping Kicker" (1.4) by msleeper
42 "AllChat" (1.1.1) by Frenzzy
43 "ChatLogEx" (1.3.7) by muukis (original author Nephyrin)
44 "RankMe" (2.8.1) by lok1
45 "IP Chat Block" (1.4) by SuperRaWR
46 "SM Whisper chat" (0.1b) by Franc1sco steam: franug
47 "Radio Spam Blocker" (1.2) by TheAvengers2
48 "Spray Pruning" (1.0.0.1) by sslice
49 "Admin File Reader" (1.4.4) by AlliedModders LLC
50 "Basic Commands" (1.4.4) by AlliedModders LLC
51 "SMAC Eye Angle Test" (0.7.7.5) by GoD-Tony, psychonic
52 "Show Damage" (1.0.7) by exvel
53 "Admin Menu" (1.4.4) by AlliedModders LLC
54 "Timing Out Announce" (1.0.2) by Leonardo
55 "Resetscore" (1.2) by TimeBomb
56 "Limit Ban Duration" (1.0.2) by Twisted|Panda
57 "(LBD) Basic Ban Commands" (1.4.1) by AlliedModders LLC

Filename: sm_limit_ban_duration.smx
Title: Limit Ban Duration (Provides functionality for creating restrictions on ban lengths.)
Author: Twisted|Panda
Version: 1.0.2
URL: http://ominousgaming.com
Status: running
Reloads: Map Change if Updated
Timestamp: 04/23/2012 14:25:03

Filename: lbd_basebans.smx
Title: (LBD) Basic Ban Commands (Basic Banning Commands, with optional Limit Ban Duration support.)
Author: AlliedModders LLC
Version: 1.4.1
URL: http://www.sourcemod.net/
Status: running
Reloads: Map Change if Updated
Timestamp: 04/23/2012 14:00:19
Code:
"Limit_Ban_Durations"
{
	//-=-=-=-=-=-=-=-=-=-=-=-=-=
	//"#_of_minutes"
	//{
	//	"override" "Limit_Ban_Duration"
	//	"flags" "flag1,flag2,flag3"
	//  "display" "X Minutes/Hours/Seconds/Years/Months/Jiggawatts"
	//}
	//-=-=-=-=-=-=-=-=-=-=-=-=-=
	//- #_of_minutes is the maximum value for that rank. If you give an admin access to "5", they can ban up to 5 minutes, but no more.
	//
	//- "0" seconds indicates a permanent punishment. Only one "0" entry will be considered.
	//
	//- Both "override" and "flags" definitions are necessary when restricting a specific duration. Using one without the other will result in undesired behavior.
	//  - You're not required to use the "override" or even have Overrides set up on your server, but the definition is necessary for the method being used.
	//		- When in doubt, just use an override of "Limit_Ban_Duration". Set it and forget it the saying goes!
	//	- "flags" are checked when the user does not have access to the provided "override", so a bogus override allows for just flag usage.
	//		- When specifying multiple flags, users must possess all flags to access the specific duration.
	//  		- For example, "flags" "a,b,c" will require the user possess all three flags.
	//
	//- An "override" and "flags" definition of "" will result in no restriction being placed upon that length.
	//	- Do not do silly things such as block off "5" minutes yet allow "15" minutes; the plugin will durations arrange times from low to high and assumes you're not an idiot.
	//
	//- The "display" parameter is displayed to clients when accessing the ban parameter is a modified ban plugin.
	//-=-=-=-=-=-=-=-=-=-=-=-=-=

	"5"
	{
		"override"	"Limit_Ban_Duration"
		"flags" 	"d"
		
		"display"	"5 Minutes"
	}
	"10"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"10 Minutes"
	}
	"15"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"15 Minutes"
	}
	"30"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"30 Minutes"
	}
	"45"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"45 Minutes"
	}
	"60"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"60 Minutes"
	}
	"120"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"2 Hours"
	}
	"180"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"3 Hours"
	}
	"360"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"6 Hours"
	}
	"720"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"12 Hours"
	}
	"1440"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"24 Hours"
	}
	"2880"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"2 Days"
	}
	"4320"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"d"
		
		"display"	"3 Days"
	}
	"5760"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"f"
		
		"display"	"4 Days"
	}
	"7200"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"f"
		
		"display"	"5 Days"
	}
	"8640"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"f"
		
		"display"	"6 Days"
	}
	"10080"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"f"
		
		"display"	"7 Days"
	}
	"20160"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"f"
		
		"display"	"2 Weeks"
	}
	"30240"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"f"
		
		"display"	"3 Weeks"
	}
	"40320"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"f"
		
		"display"	"4 Weeks"
	}
	"0"
	{
		"override"	"Limit_Ban_Duration"
		"flags"		"f"
		
		"display"	"Permanent"
	}
}
Can you help me? I don't know what I'm doing wrong.
Thanks!
Suckah is offline
homerjsimpson
BANNED
Join Date: Feb 2009
Location: https://t.me/pump_upp
Old 09-30-2012 , 00:36   Re: [Any] Limit Ban Duration v1.0.2 (Updated: 4/23/12)
Reply With Quote #30

Hi Panda,

I'm trying to use the script but I've got this error:
PHP Code:
L 09/30/2012 00:57:40: [SMNative "CreateNative" reportedFatal error creating dynamic native!
L 09/30/2012 00:57:40: [SMDisplaying call stack trace for plugin "sourcebans.smx":
L 09/30/2012 00:57:40: [SM]   [0]  Line 127D:\Program Files (x86)\Zend\Apache2\htdocs\sourcebans\trunk\game_upload\addons\sourcemod\scripting\sourcebans.sp::AskPluginLoad2()
L 09/30/2012 00:57:40: [SMUnable to load plugin "lbd_sourcebans.smx"Could not find required plugin "SourceBans" 
Than script not load:
PHP Code:
00:45:15 [SMListing 28 plugins:
           
01 "Client Preferences" (1.4.5-devby AlliedModders LLC
           02 
"CZS BBA - Buy Beacon and Aura" (0.1by MewtwoRodrigo286
           03 
"Basic Comm Control" (1.4.5-devby AlliedModders LLC
           04 
"Player Commands" (1.4.5-devby AlliedModders LLC
           05 
"Map Nominations" (1.4.5-devby AlliedModders LLC
           06 
"Basic Votes" (1.4.5-devby AlliedModders LLC
           07 
"RandomCycle" (1.4.5-devby AlliedModders LLC
           08 
"gameME Plugin" (4.2by TTS Oetzel Goerz GmbH
           09 
"Admin File Reader" (1.4.5-devby AlliedModders LLC
           10 
"Zombie:Reloaded" (3.0.0-b2by Greyscale Richard Helgeby
           11 
"Basic Commands" (1.4.5-devby AlliedModders LLC
           12 
"Admin loggin" (1.0by vIr-Dan
           13 
"Advanced Frost Smoke" (1.4by Rodrigo286
           14 
"Mapchooser Extended Sounds" (1.2by Powerlord
           15 
"Map configs" (1.1.1by Berni
           16 
"Reserved Slots" (1.4.5-devby AlliedModders LLC
           17 
"Anti-Flood" (1.4.5-devby AlliedModders LLC
           18 
"Fun Votes" (1.4.5-devby AlliedModders LLC
           19 
"SourceBans" (1.4.9by SourceBans Development Team
           20 
"Fun Commands" (1.4.5-devby AlliedModders LLC
           21 
"Nextmap" (1.4.5-devby AlliedModders LLC
           22 
"Rock The Vote" (1.4.5-devby AlliedModders LLC
           23 
"Sound Commands" (1.4.5-devby AlliedModders LLC
           24 
"Basic Info Triggers" (1.4.5-devby AlliedModders LLC
           25 
"Admin Menu" (1.4.5-devby AlliedModders LLC
           26 
"Admin Help" (1.4.5-devby AlliedModders LLC
           27 
"Basic Chat" (1.4.5-devby AlliedModders LLC
           28 
<Failed"(LBD) SourceBans" (1.4.9by SourceBans Development Teamwith optional Limit Ban Duration support
I've this installation on Linux:
Listing 4 plugins:
Quote:
[01] SourceMod (1.4.7-dev) by AlliedModders LLC
[02] CS:S Tools (1.4.7-dev) by AlliedModders LLC
[03] SDK Tools (1.4.7-dev) by AlliedModders LLC
[04] SDK Hooks (2.2.0) by Tsunami, psychonic

SourceMod Version Information:
Quote:
SourceMod Version: 1.4.7-dev
SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.4.7-dev)
SourcePawn API: v1 = 4, v2 = 4
Compiled on: Sep 22 2012 05:03:23
Build ID: 3575:d4ed97ec1897-dev
http://www.sourcemod.net/

cstrike/addons/sourcemod/configs
Quote:
sm_limit_ban_duration.ini

cstrike/addons/sourcemod/plugins
Quote:
lbd_sourcebans.smx
sm_limit_ban_duration.smx

cstrike/addons/sourcemod/translations
Quote:
sm_limit_ban_duration.phrases.txt

Any ideia how I can fix this ??


Regards
homerjsimpson is offline
Send a message via ICQ to homerjsimpson Send a message via AIM to homerjsimpson Send a message via Yahoo to homerjsimpson Send a message via Skype™ to homerjsimpson
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 17:51.


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