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)