Skip to content

Commit

Permalink
fix(zmarketcommand): verify zmarket status (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway authored Oct 29, 2024
1 parent 1a96044 commit fe1ce34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/addons/sourcemod/scripting/zombiereloaded.sp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

#include <sdkhooks>

#define VERSION "3.10.11"
#define VERSION "3.10.12"

// Comment this line to exclude version info command. Enable this if you have
// the repository and HG installed (Mercurial or TortoiseHG).
Expand Down
7 changes: 7 additions & 0 deletions src/addons/sourcemod/scripting/zr/weapons/zmarket.inc
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,19 @@ void ZMarketLoad()

public Action ZMarketBuyCommand(int client, int argc)
{
bool zmarketenabled = GetConVarBool(g_hCvarsList.CVAR_WEAPONS_ZMARKET);
char command[CONFIG_MAX_LENGTH];
char zmarketcommand[CONFIG_MAX_LENGTH];
char weaponname[WEAPONS_MAX_LENGTH];

GetCmdArg(0, command, sizeof(command));

if (!zmarketenabled)
{
TranslationPrintToChat(client, "Feature is disabled");
return Plugin_Handled;
}

int size = GetArraySize(arrayWeapons);
for (int weaponindex = 0; weaponindex < size; weaponindex++)
{
Expand Down

0 comments on commit fe1ce34

Please sign in to comment.