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

* Implement/match `CNetGame::GetPlayerVehicleID(...)`
This commit is contained in:
RD42
2024-07-01 23:01:21 +08:00
parent 3930e321c9
commit c264951e74
3 changed files with 24 additions and 1 deletions

View File

@ -166,7 +166,10 @@ static cell AMX_NATIVE_CALL n_GetPlayerPos(AMX *amx, cell *params)
// native GetPlayerVehicleID(playerid)
static cell AMX_NATIVE_CALL n_GetPlayerVehicleID(AMX *amx, cell *params)
{
// TODO: n_GetPlayerVehicleID
if(pNetGame->GetPlayerPool()->GetSlotState((PLAYERID)params[1]))
{
return pNetGame->GetPlayerVehicleID((PLAYERID)params[1]);
}
return 0;
}