PHP Code:
#include <sourcemod>
#include <cstrike>
bool g_Planted;
public void OnPluginStart()
{
HookEvent("round_prestart", Event_RoundPreStart);
}
public Action Event_RoundPreStart(Event event, const char[] name, bool dontBroadcast)
{
g_Planted = false;
}
public Action CS_OnTerminateRound(float& delay, CSRoundEndReason& reason)
{
if(reason == CSRoundEnd_TerroristsPlanted)
{
if(g_Planted)
{
return Plugin_Handled;
}
else
{
g_Planted = true;
}
}
return Plugin_Continue;
}
I don't know if the csgo will end the round when you plant a second time. And i don't know if the roundtime will be restarted or frozen.
And someone should receive a bomb after the detonation ...
And why terrorists need to plant 2 times? Just change the mp_c4time cvar from 45 to 90