Thread: Block Round End
View Single Post
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 10-07-2023 , 15:26   Re: Block Round End
Reply With Quote #14

In version amxmodx 190, this can prevent the end of the round
Code:
#include <amxmodx>
#include <fakemeta>

enum WinStatus
{
	WS_CT = 1,
	WS_TERRORIST,
	WS_DRAW
};

#define BlockRoundEnd\
	set_gamerules_int("CHalfLifeMultiplay", "m_bFirstConnected", true);\
	set_gamerules_int("CHalfLifeMultiplay", "m_iRoundWinStatus", WS_DRAW)

public plugin_init()
{
	BlockRoundEnd;
	register_logevent("LogEvent_RoundStart", 2, "1=Round_Start");
}
public LogEvent_RoundStart()
{
	BlockRoundEnd;
}
Leech_v2 is offline