Hey,
I am currently trying to Handle / Stop the Round end Reason CSRoundEnd_TargetSaved (11). The Problem i face doing this is that even when i do handle it, it will be called again, and again, and again.
Each time its called the CT's points are counted up until the game ends because the CT's have accumulated enough points. I have tried the latest Dev and Stable build (Windows) and could just not find a fix for it. Having a non-empty CT team does not fix it either.
I do not have any other plugins on the server which could be the cause for this.
Obligatory code:
PHP Code:
public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason) {
PrintToChatAll("CS_OnTerminateRound.Debug: Reason? %d", reason);
if(reason == CSRoundEnd_TargetSaved) return Plugin_Stop;
return Plugin_Continue;
}
Output:
Code:
CS_OnTerminateRound.Debug: Reason? 11
CS_OnTerminateRound.Debug: Reason? 11
CS_OnTerminateRound.Debug: Reason? 11
CS_OnTerminateRound.Debug: Reason? 11
CS_OnTerminateRound.Debug: Reason? 11
CS_OnTerminateRound.Debug: Reason? 11
CS_OnTerminateRound.Debug: Reason? 11
CS_OnTerminateRound.Debug: Reason? 11
After that the game just ends ( CT's won with a score of 8 )