mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match CRemotePlayer::ExitVehicle()
This commit is contained in:
parent
9b91485a8a
commit
b65e643be4
@ -100,3 +100,12 @@ void CRemotePlayer::EnterVehicle(VEHICLEID VehicleID, BOOL bPassenger)
|
|||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
|
||||||
|
void CRemotePlayer::ExitVehicle()
|
||||||
|
{
|
||||||
|
if(m_pPlayerPed && m_pPlayerPed->IsInVehicle()) {
|
||||||
|
m_pPlayerPed->SetKeys(0,0,0);
|
||||||
|
m_pPlayerPed->ExitCurrentVehicle();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------
|
||||||
|
@ -62,6 +62,7 @@ public:
|
|||||||
DWORD GetPlayerColorAsARGB();
|
DWORD GetPlayerColorAsARGB();
|
||||||
|
|
||||||
void EnterVehicle(VEHICLEID VehicleID, BOOL bPassenger);
|
void EnterVehicle(VEHICLEID VehicleID, BOOL bPassenger);
|
||||||
|
void ExitVehicle();
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user