From dcf8c4af8194fc083595d521c13489dc07ce423f Mon Sep 17 00:00:00 2001 From: shavitush Date: Wed, 3 Aug 2016 03:15:25 +0300 Subject: [PATCH] fix sm_usp not working (#126) --- scripting/shavit-misc.sp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripting/shavit-misc.sp b/scripting/shavit-misc.sp index 0d6aed58..7fd8d523 100644 --- a/scripting/shavit-misc.sp +++ b/scripting/shavit-misc.sp @@ -837,21 +837,21 @@ public Action Command_Weapon(int client, int args) GetCmdArg(0, sCommand, 16); int iSlot = CS_SLOT_SECONDARY; - char[] sWeapon = new char[16]; + char[] sWeapon = new char[32]; if(StrContains(sCommand, "usp", false) != -1) { - strcopy(sWeapon, 16, (gSG_Type == Game_CSS)? "weapon_usp":"weapon_usp_silencer"); + strcopy(sWeapon, 32, (gSG_Type == Game_CSS)? "weapon_usp":"weapon_usp_silencer"); } else if(StrContains(sCommand, "glock", false) != -1) { - strcopy(sWeapon, 16, "weapon_glock"); + strcopy(sWeapon, 32, "weapon_glock"); } else { - strcopy(sWeapon, 16, "weapon_knife"); + strcopy(sWeapon, 32, "weapon_knife"); iSlot = CS_SLOT_KNIFE; }