View Single Post
El Diablo War3Evo
Veteran Member
Join Date: Jun 2013
Old 11-09-2013 , 15:59   Re: [TF2] Force End Round
Reply With Quote #6

new iEnt = -1;

iEnt = FindEntityByClassname(iEnt, "game_round_win");

if (iEnt < 1)
{
iEnt = CreateEntityByName("game_round_win");
if (IsValidEntity(iEnt))
DispatchSpawn(iEnt);
else
{
SC_LogError("Unable to find or create a game_round_win entity!");
}
}

if(IsValidEntity(iEnt))
{
SetVariantInt(2);
AcceptEntityInput(iEnt, "SetTeam");
AcceptEntityInput(iEnt, "RoundWin");
}


^^ Causes a server to crash if used at the moment a player dies
El Diablo War3Evo is offline