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

[ZE] Breakable manager


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
JusTGo
Veteran Member
Join Date: Mar 2013
Old 03-24-2020 , 09:50   [ZE] Breakable manager
Reply With Quote #1

[ZE] Breakable manager



Description:
a simple plugin that will let you block/punish players who break objects while their teammates still using them

Cvars:
ze_nobreak 1/0: Block breaking objects that teammates still use.
ze_punishbreaker 1/0: Punish players who break objects that teammates still use ( ze_nobreak should be set to 0 ).

Changelog:
Code:
-V1.0: 
*First release.
-V1.1:
*Fixed players check loop.
Attached Files
File Type: sma Get Plugin or Get Source (ze_bm.sma - 211 views - 1.7 KB)
__________________

Last edited by JusTGo; 03-26-2020 at 07:48.
JusTGo is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-07-2020 , 07:52   Re: [ZE] Breakable manager
Reply With Quote #2

Should this be moved to ZP section? It doesn't seem to have any zombie specific code.
Could it be useful in any other mods?
__________________
HamletEagle is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 04-07-2020 , 07:54   Re: [ZE] Breakable manager
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
Should this be moved to ZP section? It doesn't seem to have any zombie specific code.
Could it be useful in any other mods?
It's mostly for ZE ( Zombie escape ) and not ZP, but any mod which have breakable objects and wants to punish/block breakers can use it.
__________________
JusTGo is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-07-2020 , 08:28   Re: [ZE] Breakable manager
Reply With Quote #4

Then I'm okay with reviewing and eventually approving. Anyone with a different opinion?
__________________
HamletEagle is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 04-03-2021 , 15:06   Re: [ZE] Breakable manager
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Then I'm okay with reviewing and eventually approving. Anyone with a different opinion?
I guess not?
__________________
JusTGo is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-03-2021 , 15:41   Re: [ZE] Breakable manager
Reply With Quote #6

I kinda wanted someone to say if they find this useful or not, given it's a really simple plugin.

Well, I guess it doesn't matter.
IsAllowedToBreak, IsSameTeam, punish should not be "public" as they are internal to the plugin and not called from the outside.
You should be using get_players instead of a loop from 1 to max players.
IsAllowedToBreak, IsSameTeam can be tagged with "bool:".
Fix your spacing here:
PHP Code:
 client_print_color(0id ,"%s ^3%n^1 got ^4slayed^1 for breaking on teammates.",PLUGIN_PREFIXid ,ent 
I guess you could add different forms of punishment besides killing the offender, to make this a bit more complex.
__________________

Last edited by HamletEagle; 04-03-2021 at 15:42.
HamletEagle is offline
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 04-08-2021 , 03:54   Re: [ZE] Breakable manager
Reply With Quote #7

Quote:
Originally Posted by JusTGo View Post
[ZE] Breakable manager



Description:
a simple plugin that will let you block/punish players who break objects while their teammates still using them

Cvars:
ze_nobreak 1/0: Block breaking objects that teammates still use.
ze_punishbreaker 1/0: Punish players who break objects that teammates still use ( ze_nobreak should be set to 0 ).

Changelog:
Code:
-V1.0: 
*First release.
-V1.1:
*Fixed players check loop.
Is this same like this one?
https://escapers-zone.net/viewtopic.php?f=15&t=3364

As I know it has known issues like the last one who shoots the breakable entity and it breaks. He will die.
__________________
nG_getwreck is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-19-2021 , 04:48   Re: [ZE] Breakable manager
Reply With Quote #8

No changes, unapproved. If you decide to update the plugin and want to request a new review please PM me.
__________________
HamletEagle 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 20:05.


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