From dc4688d7bb91d929ae16ef455b262c7219670049 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:02:21 +0800 Subject: [PATCH] [bot] Implement/match `n_IsPlayerStreamedIn(...)` --- bot/scrcustom.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bot/scrcustom.cpp b/bot/scrcustom.cpp index c8a9de9..dd03c83 100644 --- a/bot/scrcustom.cpp +++ b/bot/scrcustom.cpp @@ -216,9 +216,11 @@ static cell AMX_NATIVE_CALL n_GetPlayerSpecialAction(AMX *amx, cell *params) // native IsPlayerStreamedIn(playerid) static cell AMX_NATIVE_CALL n_IsPlayerStreamedIn(AMX *amx, cell *params) { - if(!pNetGame->GetPlayerPool()->GetSlotState((PLAYERID)params[1])) return 0; - - return pNetGame->IsPlayerAdded((PLAYERID)params[1]); + if(pNetGame->GetPlayerPool()->GetSlotState((PLAYERID)params[1])) + { + return pNetGame->IsPlayerAdded((PLAYERID)params[1]); + } + return 0; } // native IsVehicleStreamedIn(vehicleid)