From a25cec876acbae05beb1a1c651b06163bf3683e4 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sat, 8 Jun 2024 21:44:51 +0800 Subject: [PATCH] [bot] Implement `n_SetMyFacingAngle(...)` --- bot/scrcustom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/scrcustom.cpp b/bot/scrcustom.cpp index 671bb09..f50d9dc 100644 --- a/bot/scrcustom.cpp +++ b/bot/scrcustom.cpp @@ -220,8 +220,8 @@ static cell AMX_NATIVE_CALL n_GetMyFacingAngle(AMX *amx, cell *params) // native SetMyFacingAngle(Float:ang) static cell AMX_NATIVE_CALL n_SetMyFacingAngle(AMX *amx, cell *params) { - // TODO: n_SetMyFacingAngle - return 0; + pNetGame->SetMyZAngle(amx_ctof(params[1])); + return 1; } // native GetDistanceFromMeToPoint(Float:X, Float:Y, Float:Z, &Float:Distance)