Help me use oprheu to block defusal of bomb
So I run a furien server. I made multiple c4s available to be bought and I'm stuck now because if they're 2 bombs planted, if any of them gets defused the round ends.
PHP Code:
I've first tried looking at infinite round, but couldn't understand anything. The plugin is so complex and even tho I could use it by setting it to only block def, I still need the bomb to be defused, but only when it's the last one planted. I've also found a non orpheu way also made by connor but he mentioned it being unefficient so much I'm not scared to use it(grenade think) I can't understand anything from oprheu so if someone could be kind enough to write a snippet for me to block it, it would be great. Thanks a lot. |
Re: Help me use oprheu to block defusal of bomb
better solution is to block planting another bomb if one is planted, what do you think?
|
Re: Help me use oprheu to block defusal of bomb
Quote:
so basically, you can plant as many bombs as you want, they have to defuse them all to win and to avoid being boomed |
Re: Help me use oprheu to block defusal of bomb
The Infinite Round API is your answer.
PHP Code:
|
Re: Help me use oprheu to block defusal of bomb
Quote:
I just need to include the infinite round api? How do I declare/hook/register whatever the forward? What are the RoundEndTypes? are those the flags defined in infinte round(the letters?) |
Re: Help me use oprheu to block defusal of bomb
It is the same as using any other forward. The RoundEndType's can be found in the infinite_round.inc.
You just need to keep in mind that the default value of ir_block_roundend ( "*" ) can be superceded by returning, but will not allow the round to end if you return PLUGIN_CONTINUE. Therefore you will need to use a flag that is irrelevant to the scenario such as k ( prevent prison escape ). Something like this should suffice: PHP Code:
|
Re: Help me use oprheu to block defusal of bomb
hornet, better check c4 grenade type ;)
|
Re: Help me use oprheu to block defusal of bomb
Quote:
Just asking because I'm already caching bombs as they're being planted so no need to look trough ents |
Re: Help me use oprheu to block defusal of bomb
Quote:
Quote:
|
Re: Help me use oprheu to block defusal of bomb
Quote:
|
| All times are GMT -4. The time now is 12:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.