This Plugin Will Stop Players From Being Harmed/Killed After The ROund Has Ended
//new bool:RoundEnded = true
name = "Round End Protection",
description = "Keeps Players From Being Killed At ROund End",
url = "www.sourcemod.net"
// hook round end event on plugin start
Switch = CreateConVar("round_end_on","1","1 Turns The Plugin On 0 Is Off",FCVAR_NOTIFY);
HookEvent("round_end",StopKills, EventHookMode_Pre);
HookEvent("round_start",ResetMode);
///HookEvent("player_spawn",SpawnEvent);
// force godmode on all players for round end
public Action:StopKills(Handle: event , const String: name[] , bool: dontBroadcast)
new PLAYERS = GetMaxClients();
for(new j = 1 ; j <= PLAYERS ; ++j)
SetEntProp(j, Prop_Data, "m_takedamage", 0 , 1);
public ResetMode(Handle: event , const String: name[] , bool: dontBroadcast)
new PLAYERS = GetMaxClients();
for(new j = 1 ; j <= PLAYERS ; ++j)
SetEntProp(j, Prop_Data, "m_takedamage", 2 , 1);
public SpawnEvent(Handle:event,const String:name[],bool:dontBroadcast)
new clientID = GetEventInt(event,"userid");
new client = GetClientOfUserId(clientID);
SetEntProp(client, Prop_Data, "m_takedamage", 0 , 1);