mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[bot] Implement/match n_IsPlayerStreamedIn(...)
This commit is contained in:
parent
6ead220db3
commit
dc4688d7bb
@ -216,9 +216,11 @@ static cell AMX_NATIVE_CALL n_GetPlayerSpecialAction(AMX *amx, cell *params)
|
|||||||
// native IsPlayerStreamedIn(playerid)
|
// native IsPlayerStreamedIn(playerid)
|
||||||
static cell AMX_NATIVE_CALL n_IsPlayerStreamedIn(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL n_IsPlayerStreamedIn(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
if(!pNetGame->GetPlayerPool()->GetSlotState((PLAYERID)params[1])) return 0;
|
if(pNetGame->GetPlayerPool()->GetSlotState((PLAYERID)params[1]))
|
||||||
|
{
|
||||||
return pNetGame->IsPlayerAdded((PLAYERID)params[1]);
|
return pNetGame->IsPlayerAdded((PLAYERID)params[1]);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// native IsVehicleStreamedIn(vehicleid)
|
// native IsVehicleStreamedIn(vehicleid)
|
||||||
|
Loading…
Reference in New Issue
Block a user