From 31b71760e4d28a8a7605d7d201be04376fb61e78 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sat, 12 Nov 2005 00:47:34 +0000 Subject: [PATCH] strip_user_weapons should reset now the weapon status --- dlls/fun/fun.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/fun/fun.cpp b/dlls/fun/fun.cpp index ef4108ad..96200df4 100755 --- a/dlls/fun/fun.cpp +++ b/dlls/fun/fun.cpp @@ -520,7 +520,7 @@ static cell AMX_NATIVE_CALL set_user_footsteps(AMX *amx, cell *params) // set_us } // SidLuke -static cell AMX_NATIVE_CALL strip_user_weapons(AMX *amx, cell *params) { // index +static cell AMX_NATIVE_CALL strip_user_weapons(AMX *amx, cell *params) { // index CHECK_PLAYER(params[1]); edict_t* pPlayer = MF_GetPlayerEdict(params[1]); @@ -562,7 +562,9 @@ static cell AMX_NATIVE_CALL strip_user_weapons(AMX *amx, cell *params) { // inde REMOVE_ENTITY(pent); REMOVE_ENTITY(pent2); - return 1; + pPlayer->v.weapons = 0; + + return 1; } AMX_NATIVE_INFO fun_Exports[] = {