Permalink
Browse files

Try to reproduce #305

But i can't reproduce this anymore....
  • Loading branch information...
Bara committed May 31, 2018
1 parent e6258b2 commit 53bc391d04620b8304c4a0be25c5783c26be5f74
Showing with 18 additions and 0 deletions.
  1. +18 −0 addons/sourcemod/scripting/tests/ttt_api_test.sp
@@ -1,6 +1,7 @@
#pragma semicolon 1
#include <sourcemod>
#include <cstrike>
#include <ttt>
#include <ttt_sql>
#include <ttt_shop>
@@ -32,6 +33,7 @@ public void OnPluginStart()
RegAdminCmd("sm_uitem", Command_UItem, ADMFLAG_ROOT);
RegAdminCmd("sm_trole", Command_TRole, ADMFLAG_ROOT);
RegAdminCmd("sm_endround", Command_EndRound, ADMFLAG_ROOT);
}
public Action Command_TRole(int client, int args)
@@ -52,6 +54,22 @@ public Action Command_TRole(int client, int args)
PrintToChat(client, "(5) Player: %N - RoleID: %d - RoleName: %s - RoleShort: %s", client, iRole, sRole, sShort);
}
public Action Command_EndRound(int client, int args)
{
if (args != 1)
{
ReplyToCommand(client, "sm_endround <delay in seconds>");
return Plugin_Handled;
}
char sArg[12];
GetCmdArg(1, sArg, sizeof(sArg));
CS_TerminateRound(StringToFloat(sArg), CSRoundEnd_Draw, true);
return Plugin_Handled;
}
public Action Command_UItem(int client, int args)
{
if (args != 2)

0 comments on commit 53bc391

Please sign in to comment.