Try this:
Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
new bool:g_round_started;
public plugin_init()
{
register_logevent("EventRoundStart", 2, "1=Round_Start");
register_logevent("EventRoundEnd", 2, "1=Round_End");
register_event("TextMsg", "EventRoundEnd", "a", "2=#Game_Commencing", "2=#Game_will_restart_in");
RegisterHam(Ham_Spawn, "player", "FwdPlayerSpawn", 1);
}
public EventRoundStart()
{
g_round_started = true;
}
public EventRoundEnd()
{
g_round_started = false;
}
public FwdPlayerSpawn(client)
{
if( g_round_started )
{
user_silentkill(client);
}
}
__________________