From 798d8e1b50918f55783a3d2d40a75541a85cb6ac Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 27 Apr 2024 21:11:03 +0800 Subject: [PATCH] [server] Implement and match `n_AllowInteriorWeapons(...)` --- server/scrcustom.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/scrcustom.cpp b/server/scrcustom.cpp index 6887f66..2a6e626 100644 --- a/server/scrcustom.cpp +++ b/server/scrcustom.cpp @@ -358,10 +358,14 @@ static cell AMX_NATIVE_CALL n_EnableVehicleFriendlyFire(AMX *amx, cell *params) return 1; } +//---------------------------------------------------------------------------------- + +// native AllowInteriorWeapons(allow) static cell AMX_NATIVE_CALL n_AllowInteriorWeapons(AMX *amx, cell *params) { - // TODO: AllowInteriorWeapons - return 0; + CHECK_PARAMS(1); + pNetGame->m_bAllowWeapons = (bool)params[1]; + return 1; } static cell AMX_NATIVE_CALL n_SetGravity(AMX *amx, cell *params)