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

[CS:GO][Retakes] FailToPlant (v1.2 - 12/12/18)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Plugin ID:
5637
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
For splewis Retakes - Kick/Ban players who failed to plant the bomb in retake
Old 05-23-2017 , 18:28   [CS:GO][Retakes] FailToPlant (v1.2 - 12/12/18)
Reply With Quote #1

Rate Thread

Retakes - FailToPlant for splewis Retakes

Kick/Ban players who failed to plant the bomb in splewis retakes. Supports sourcemod bans, sourcebans & sourcebans++.

ConVars
Code:
sm_retakes_fail_plant_enable - 0 - disabled, 1 - enable this plugin.
sm_retakes_fail_plant_times - How many times to fail to plant bomb before take action?
sm_retakes_fail_plant_action - What action after a player reach sm_retakes_fail_plant_times? 0 - Kick / 1 - Ban.
sm_retakes_fail_plant_ban_time - How long should the player banned on 'sm_retakes_fail_plant_times' '1'? In Minutes / 0 = permanent.
sm_retakes_fail_plant_reason - the kick/ban reason for a player.
Required plugins
Credits
Big thanks @splewis for his great work!
Also big thanks to all sourcemod & metamod developers out there!

Include file for compile
Installation
Quote:
  1. FailToPlant.smx -> addons/sourcemod/plugins/
  2. FailToPlant.sp -> addons/sourcemod/scripting/ (optional)
  3. Config file sourcemod/retakes/FailToPlant.cfg will be generated after first startup
  4. Have Fun! Give feedback!

Github
https://github.com/shanapu/retakes-FailToPlant


You like my work for the community? Buy me a beer!
Attached Files
File Type: sp Get Plugin or Get Source (FailedToPlant.sp - 284 views - 4.7 KB)
File Type: smx FailedToPlant.smx (5.6 KB, 276 views)
__________________
coding & free software

Last edited by shanapu; 12-12-2018 at 17:37.
shanapu is offline
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 05-25-2017 , 07:04   Re: [Retake] FailToPlant (v1.0 - 23/05/17)
Reply With Quote #2

It doesn't seem to work for me.. no errors, etc.

Quote:
"CS:GO Retakes: Customised Weapon Allocator for splewis retakes plugin" (0.2.0) by BatMen
"CS:GO Retakes" (0.3.2-dev+122) by splewis
"CS:GO Retakes: site picker" (0.3.2-dev+122) by splewis
Quote:
// This file was auto-generated by SourceMod (v1.8.0.599
// ConVars for plugin "FailedToPlant.smx"


// What action after a player reach sm_retakes_fail_plant_times? 0 - Kick / 1 - Ban
// -
// Default: "0"
// Minimum: "1.000000"
// Maximum: "2.000000"
sm_retakes_fail_plant_action "0"

// How long should the player banned on 'sm_retakes_fail_plant_times' '2'? In Minutes / 0 = permanent
// -
// Default: "15"
// Minimum: "0.000000"
sm_retakes_fail_plant_ban_time "15"

// 0 - disabled, 1 - enable this plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_retakes_fail_plant_enable "1"

// The kick/ban reason for a player
// -
// Default: "You failed to often to plant the bomb"
// Minimum: "0.000000"
sm_retakes_fail_plant_reason "You failed to often to plant the bomb"

// How many times to fail to plant bomb before take action
// -
// Default: "3"
// Minimum: "1.000000"
sm_retakes_fail_plant_times "1"
Cooky is offline
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 05-26-2017 , 07:15   Re: [Retake] FailToPlant (v1.0 - 23/05/17)
Reply With Quote #3

I just checked and you need a minimum of 2 players. However; 1 CVAR is not working.

Quote:
"sm_retakes_fail_plant_action" = "1.000000" ( def. "0" ) min. 1.000000 max. 2.000000 - What action after a player reach sm_retakes_fail_plant_times? 0 - Kick / 1 - Ban
It stays on 1 (that's the minimum) and I can't set it on 0.
Cooky is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 05-26-2017 , 08:24   Re: [Retake] FailToPlant (v1.0 - 23/05/17)
Reply With Quote #4

Quote:
Originally Posted by Cooky View Post
It doesn't seem to work for me.. no errors, etc.
Quote:
Originally Posted by Cooky View Post
I just checked and you need a minimum of 2 players. However; ...
Oh yeah, I forgot to mention that. The retakes forward 'Retakes_OnFailToPlant' only fires with a minimum of 2 players.

Quote:
Originally Posted by Cooky View Post
1 CVAR is not working.
It stays on 1 (that's the minimum) and I can't set it on 0.
fixed. sorry for the circumstances.
__________________
coding & free software
shanapu is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 05-26-2017 , 09:47   Re: [Retake] FailToPlant (v1.0 - 23/05/17)
Reply With Quote #5

Awesome plugin, thanks for sharing shanapu!
__________________
weeeishy is offline
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 05-27-2017 , 05:14   Re: [Retake] FailToPlant (v1.0 - 23/05/17)
Reply With Quote #6

Works great now, thanks!!!

Last edited by Cooky; 05-27-2017 at 05:14.
Cooky is offline
TrappaTroopa
Senior Member
Join Date: Feb 2016
Old 06-10-2017 , 13:32   Re: [Retake] FailToPlant (v1.0 - 23/05/17)
Reply With Quote #7

Quote:
Originally Posted by shanapu View Post
Oh yeah, I forgot to mention that. The retakes forward 'Retakes_OnFailToPlant' only fires with a minimum of 2 players.



fixed. sorry for the circumstances.
Can we get a function that check how many times they have been kicked for not planting and ban them after say 2 kicks?

I know this probably makes the plugin way more complicated. But It would be nice to say kick for the first offense, then ban for 30 minutes the second offense, 2 hours third offense, etc. I guess this would have to either be stored in an array then sent to sourcebans as a ban after the 2nd offense?
TrappaTroopa is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 06-10-2017 , 17:54   Re: [Retake] FailToPlant (v1.0 - 23/05/17)
Reply With Quote #8

Quote:
Originally Posted by TrappaTroopa View Post
Can we get a function that check how many times they have been kicked for not planting and ban them after say 2 kicks?

I know this probably makes the plugin way more complicated. But It would be nice to say kick for the first offense, then ban for 30 minutes the second offense, 2 hours third offense, etc. I guess this would have to either be stored in an array then sent to sourcebans as a ban after the 2nd offense?
yeah, I like the idea. I will add this. Not now but soon. added to my todo list...
__________________
coding & free software
shanapu is offline
TrappaTroopa
Senior Member
Join Date: Feb 2016
Old 06-12-2017 , 08:19   Re: [Retake] FailToPlant (v1.0 - 23/05/17)
Reply With Quote #9

Quote:
Originally Posted by shanapu View Post
yeah, I like the idea. I will add this. Not now but soon. added to my todo list...
Sounds great! Idk if you remember but you made me the credits plugin for Zeph Store for surf a while back. Still working well btw. Anyway looking forward to your next release
TrappaTroopa is offline
waylander3
Senior Member
Join Date: Sep 2015
Location: Russia, Norilsk
Old 12-12-2018 , 09:14   Re: [CS:GO][Retakes] FailToPlant (v1.0 - 23/05/17)
Reply With Quote #10

L 12/12/2018 - 12:06:56: SourceMod error session started
L 12/12/2018 - 12:06:56: Info (map "de_dust2") (file "errors_20181212.log")
L 12/12/2018 - 12:06:56: [SM] Exception reported: Client index 2 is invalid (arg 2)
L 12/12/2018 - 12:06:56: [SM] Blaming: FailedToPlant.smx
L 12/12/2018 - 12:06:56: [SM] Call stack trace:
L 12/12/2018 - 12:06:56: [SM] [0] LogMessage
L 12/12/2018 - 12:06:56: [SM] [1] Line 114, D:\Code\MyJailbreak\addons\sourcemod\scriptin g\FailedToPlant.sp::Retakes_OnFailToPlant
L 12/12/2018 - 12:06:56: [SM] [3] Call_Finish
L 12/12/2018 - 12:06:56: [SM] [4] Line 882, retakes.sp::CounterTerroristsWon
L 12/12/2018 - 12:06:56: [SM] [5] Line 663, retakes.sp::Event_RoundEnd
L 12/12/2018 - 12:17:27: Error log file session closed.
L 12/12/2018 - 14:25:12: SourceMod error session started
L 12/12/2018 - 14:25:12: Info (map "de_mirage") (file "errors_20181212.log")
L 12/12/2018 - 14:25:12: [SM] Exception reported: Client index 11 is invalid (arg 2)
L 12/12/2018 - 14:25:12: [SM] Blaming: FailedToPlant.smx
L 12/12/2018 - 14:25:12: [SM] Call stack trace:
L 12/12/2018 - 14:25:12: [SM] [0] LogMessage
L 12/12/2018 - 14:25:12: [SM] [1] Line 114, D:\Code\MyJailbreak\addons\sourcemod\scriptin g\FailedToPlant.sp::Retakes_OnFailToPlant
L 12/12/2018 - 14:25:12: [SM] [3] Call_Finish
L 12/12/2018 - 14:25:12: [SM] [4] Line 882, retakes.sp::CounterTerroristsWon
L 12/12/2018 - 14:25:12: [SM] [5] Line 663, retakes.sp::Event_RoundEnd
L 12/12/2018 - 140:56: Error log file session closed.
waylander3 is offline
Reply


Thread Tools
Display Modes

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:08.


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