From 516564106e31ceafe3be083cd6f0decb5a6867cb Mon Sep 17 00:00:00 2001 From: Adrian Cirstea <54354938+ShadowsAdi@users.noreply.github.com> Date: Fri, 13 Sep 2024 03:17:58 +0300 Subject: [PATCH] Fix `csgor_giveaway` bug Close #38 --- addons/amxmodx/scripting/csgor_giveaway.sma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/amxmodx/scripting/csgor_giveaway.sma b/addons/amxmodx/scripting/csgor_giveaway.sma index 77b8bab..4be159d 100644 --- a/addons/amxmodx/scripting/csgor_giveaway.sma +++ b/addons/amxmodx/scripting/csgor_giveaway.sma @@ -182,7 +182,7 @@ public ev_NewRound() if(index != -1) { client_print_color(0, print_chat, "^4%s^1 %L", CSGO_TAG, LANG_SERVER, "CSGOR_GIVEAWAY_WON_BY", index, g_eSkin[szSkin]) - g_eCvars[iType] ? csgor_set_user_statt_skins(index, g_eSkin[iSkin], 1) : csgor_set_user_skins(index, g_eSkin[iSkin], 1) + g_eCvars[iType] ? csgor_set_user_statt_skins(index, g_eSkin[iSkin], csgor_get_user_statt_skins(id, g_eSkin[iSkin]) + 1) : csgor_set_user_skins(index, g_eSkin[iSkin], csgor_get_user_skins(id, g_eSkin[iSkin])) g_bOpened = false } }