mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[server] Implement/match n_GetPlayerInterior(...)
This commit is contained in:
parent
d79db7fbac
commit
5be383d8ba
@ -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];
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user