Permalink
Browse files

Force Slay is disabled by default now

  • Loading branch information...
Bara committed Oct 20, 2018
1 parent 6b4db9a commit 6dd91299a7d7fceb0582677b836fb6de25b76f22
Showing with 10 additions and 3 deletions.
  1. +10 −3 addons/sourcemod/scripting/ttt/ttt.sp
@@ -2195,18 +2195,25 @@ public Action Command_RSlays(int client, int args)
return Plugin_Handled;
}
if (args != 3)
if (args < 2 || args > 3)
{
ReplyToCommand(client, "[SM] Usage: sm_rslays <#userid|name> <rounds> <0 - Slay Next Round, 1 - Instant Slay>");
return Plugin_Handled;
}
bool bForce = false;
char arg1[32];
char arg2[12];
char arg3[12];
GetCmdArg(1, arg1, sizeof(arg1));
GetCmdArg(2, arg2, sizeof(arg2));
GetCmdArg(3, arg3, sizeof(arg3));
if (args == 3)
{
GetCmdArg(3, arg3, sizeof(arg3));
bForce = view_as<bool>(StringToInt(arg3));
}
char target_name[MAX_TARGET_LENGTH];
int target_list[MAXPLAYERS];
@@ -2237,7 +2244,7 @@ public Action Command_RSlays(int client, int args)
return Plugin_Handled;
}
TTT_SetRoundSlays(target, rounds, view_as<bool>(StringToInt(arg3)));
TTT_SetRoundSlays(target, rounds, bForce);
LoopValidClients(j)
{

0 comments on commit 6dd9129

Please sign in to comment.