Permalink
Browse files

Add CommandExists to ttt_shop

  • Loading branch information...
Bara committed Nov 29, 2017
1 parent 089d435 commit 32712c058be1a135dc21cae30179f0328579e428
Showing with 15 additions and 3 deletions.
  1. +15 −3 addons/sourcemod/scripting/ttt/ttt_shop.sp
@@ -193,15 +193,27 @@ public void OnConfigsExecuted()
char sBuffer[32];
g_cCredits.GetString(sBuffer, sizeof(sBuffer));
Format(sBuffer, sizeof(sBuffer), "sm_%s", sBuffer);
RegConsoleCmd(sBuffer, Command_Credits);
if(!CommandExists(sBuffer))
{
RegConsoleCmd(sBuffer, Command_Credits);
}
g_cBuyCmd.GetString(sBuffer, sizeof(sBuffer));
Format(sBuffer, sizeof(sBuffer), "sm_%s", sBuffer);
RegConsoleCmd(sBuffer, Command_Buy);
if(!CommandExists(sBuffer))
{
RegConsoleCmd(sBuffer, Command_Buy);
}
g_cShowCmd.GetString(sBuffer, sizeof(sBuffer));
Format(sBuffer, sizeof(sBuffer), "sm_%s", sBuffer);
RegConsoleCmd(sBuffer, Command_ShowItems);
if(!CommandExists(sBuffer))
{
RegConsoleCmd(sBuffer, Command_ShowItems);
}
}
public void OnConVarChanged(ConVar convar, const char[] oldValue, const char[] newValue)

0 comments on commit 32712c0

Please sign in to comment.