AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO][Retakes] FailToPlant (v1.2 - 12/12/18) (https://forums.alliedmods.net/showthread.php?t=297779)

shanapu 05-23-2017 18:28

[CS:GO][Retakes] FailToPlant (v1.2 - 12/12/18)
 
2 Attachment(s)
Rate Thread https://forums.alliedmods.net/images/misc/menu_open.svghttps://forums.alliedmods.net/images...g/rating_5.svg

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 :bacon!:
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! https://www.paypalobjects.com/websta...aypal-26px.png

Cooky 05-25-2017 07:04

Re: [Retake] FailToPlant (v1.0 - 23/05/17)
 
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.5998)
// 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 05-26-2017 07:15

Re: [Retake] FailToPlant (v1.0 - 23/05/17)
 
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.

shanapu 05-26-2017 08:24

Re: [Retake] FailToPlant (v1.0 - 23/05/17)
 
Quote:

Originally Posted by Cooky (Post 2523299)
It doesn't seem to work for me.. no errors, etc.

Quote:

Originally Posted by Cooky (Post 2523580)
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 (Post 2523580)
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.

weeeishy 05-26-2017 09:47

Re: [Retake] FailToPlant (v1.0 - 23/05/17)
 
Awesome plugin, thanks for sharing shanapu!

Cooky 05-27-2017 05:14

Re: [Retake] FailToPlant (v1.0 - 23/05/17)
 
Works great now, thanks!!! :bacon!: :bacon!: :bacon!: :bacon!:

TrappaTroopa 06-10-2017 13:32

Re: [Retake] FailToPlant (v1.0 - 23/05/17)
 
Quote:

Originally Posted by shanapu (Post 2523593)
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?

shanapu 06-10-2017 17:54

Re: [Retake] FailToPlant (v1.0 - 23/05/17)
 
Quote:

Originally Posted by TrappaTroopa (Post 2527654)
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...

TrappaTroopa 06-12-2017 08:19

Re: [Retake] FailToPlant (v1.0 - 23/05/17)
 
Quote:

Originally Posted by shanapu (Post 2527725)
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 :)

waylander3 12-12-2018 09:14

Re: [CS:GO][Retakes] FailToPlant (v1.0 - 23/05/17)
 
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 - 14:30:56: Error log file session closed.


All times are GMT -4. The time now is 19:53.

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