[bot] Implement/match n_IsPlayerStreamedIn(...)

This commit is contained in:
RD42 2024-07-08 18:02:21 +08:00
parent 6ead220db3
commit dc4688d7bb

View File

@ -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)