если ты имеешь ввиду свою машину, то можно так.Как получить id / handle пассажиров в машине?
Код:
void getAllPassengers()
{
if (SF->getSAMP()->getPlayers()->pLocalPlayer->pSAMP_Actor->pGTA_Ped->state != 50)
return;
for (int counter = 0;
counter <= SF->getSAMP()->getVehicles()->pGTA_Vehicle[SF->getSAMP()->getPlayers()->pLocalPlayer->sCurrentVehicleID]->m_nMaxPassengers;
counter++)
{
actor_info *pInfo = SF->getSAMP()->getVehicles()->pGTA_Vehicle[SF->getSAMP()->getPlayers()->pLocalPlayer->sCurrentVehicleID]->passengers[counter];
CPed *pPed = GAME->GetPools()->GetPed((DWORD*)pInfo);
if (!pPed) continue;
SF->getSAMP()->getChat()->AddChatMessage(-1, "PASSENGER: %i | ID: %i",
counter, SF->getSAMP()->getPlayers()->GetSAMPPlayerIDFromGTAHandle(GAME->GetPools()->GetPedRef(pPed)));
}
}