AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   [ZE] Breakable manager (https://forums.alliedmods.net/showthread.php?t=322347)

JusTGo 03-24-2020 09:50

[ZE] Breakable manager
 
1 Attachment(s)
[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.


HamletEagle 04-07-2020 07:52

Re: [ZE] Breakable manager
 
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?

JusTGo 04-07-2020 07:54

Re: [ZE] Breakable manager
 
Quote:

Originally Posted by HamletEagle (Post 2691376)
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.

HamletEagle 04-07-2020 08:28

Re: [ZE] Breakable manager
 
Then I'm okay with reviewing and eventually approving. Anyone with a different opinion?

JusTGo 04-03-2021 15:06

Re: [ZE] Breakable manager
 
Quote:

Originally Posted by HamletEagle (Post 2691393)
Then I'm okay with reviewing and eventually approving. Anyone with a different opinion?

I guess not?

HamletEagle 04-03-2021 15:41

Re: [ZE] Breakable manager
 
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.

nG_getwreck 04-08-2021 03:54

Re: [ZE] Breakable manager
 
Quote:

Originally Posted by JusTGo (Post 2688325)
[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.

HamletEagle 08-19-2021 04:48

Re: [ZE] Breakable manager
 
No changes, unapproved. If you decide to update the plugin and want to request a new review please PM me.


All times are GMT -4. The time now is 22:00.

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