Permalink
Browse files

Allow us to slay during warmup, but just if player is alive

  • Loading branch information...
Bara committed Oct 20, 2018
1 parent 052c257 commit e76e4a9226de6e6823b999ebbec4c2f1e19c4c84
Showing with 10 additions and 7 deletions.
  1. +10 −7 addons/sourcemod/scripting/ttt/core/natives.sp
@@ -400,15 +400,18 @@ public int Native_SetRoundSlays(Handle plugin, int numParams)
g_iRoundSlays[client] = rounds;
if (g_bRoundStarted && force && IsPlayerAlive(client) && g_iRoundSlays[client] > 0)
if (g_bRoundStarted || force)
{
ForcePlayerSuicide(client);
g_iRoundSlays[client]--;
if (g_iRoundSlays[client] > 0)
if (IsPlayerAlive(client) && g_iRoundSlays[client] > 0)
{
CPrintToChat(client, "%s %T", g_sTag, "RS - Slayed", client, g_iRoundSlays[client]);
LogAction(0, client, "\"%L\" was slayed! Remaining Rounds: %d", client, g_iRoundSlays[client]);
ForcePlayerSuicide(client);
g_iRoundSlays[client]--;
if (g_iRoundSlays[client] > 0)
{
CPrintToChat(client, "%s %T", g_sTag, "RS - Slayed", client, g_iRoundSlays[client]);
LogAction(0, client, "\"%L\" was slayed! Remaining Rounds: %d", client, g_iRoundSlays[client]);
}
}
}

0 comments on commit e76e4a9

Please sign in to comment.