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:
#include <amxmodx>
#include <engine>
#include <infinite_round>
/*
ir_active_api 1
ir_block_roundend k
*/
public OnRoundEnd( const RoundEndType:iType )
{
if( iType == RoundEndType_BombDefused )
{
if( find_ent_by_model( 0, "grenade", "models/w_c4.mdl" ) )
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
__________________