[server] Implement/match n_GetPlayerInterior(...)

This commit is contained in:
RD42 2024-09-17 11:14:41 +08:00
parent d79db7fbac
commit 5be383d8ba
2 changed files with 7 additions and 2 deletions

View File

@ -171,7 +171,7 @@ public:
int field_2C34;
BOOL m_bCheckpointEnabled;
BOOL m_bRaceCheckpointEnabled;
int field_2C40;
int m_iInteriorId;
// Weapon data
DWORD m_dwSlotAmmo[13];

View File

@ -1052,9 +1052,14 @@ static cell AMX_NATIVE_CALL n_SetPlayerInterior(AMX *amx, cell *params)
return 0;
}
// native GetPlayerInterior(playerid,interiorid)
static cell AMX_NATIVE_CALL n_GetPlayerInterior(AMX *amx, cell *params)
{
// TODO: GetPlayerInterior
CPlayer *pPlayer = pNetGame->GetPlayerPool()->GetAt((PLAYERID)params[1]);
if (pPlayer)
{
return pPlayer->m_iInteriorId;
}
return 0;
}