mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CPlayerPed::RemoveFromVehicleAndPutAt(...)
This commit is contained in:
parent
ab853af4c2
commit
3227dd0905
@ -766,6 +766,17 @@ int CPlayerPed::GetVehicleSeatID()
|
||||
return (-1);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
// Forceful removal
|
||||
|
||||
void CPlayerPed::RemoveFromVehicleAndPutAt(float fX, float fY, float fZ)
|
||||
{
|
||||
if(!GamePool_Ped_GetAt(m_dwGTAId)) return;
|
||||
if(m_pPed && IN_VEHICLE(m_pPed)) {
|
||||
ScriptCommand(&remove_actor_from_car_and_put_at,m_dwGTAId,fX,fY,fZ);
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
WORD CPlayerPed::GetAmmo()
|
||||
|
@ -65,6 +65,8 @@ public:
|
||||
|
||||
void SetImmunities(BOOL bBullet, BOOL bFire, BOOL bExplosion, BOOL bDamage, BOOL bUnknown);
|
||||
|
||||
void RemoveFromVehicleAndPutAt(float fX, float fY, float fZ);
|
||||
|
||||
BOOL IsAPassenger();
|
||||
|
||||
VEHICLE_TYPE * GetGtaVehicle();
|
||||
|
@ -68,6 +68,7 @@ const SCRIPT_COMMAND set_actor_can_be_decapitated = { 0x0446, "ii" };
|
||||
|
||||
const SCRIPT_COMMAND play_sound = { 0x018c, "fffi" };
|
||||
|
||||
const SCRIPT_COMMAND remove_actor_from_car_and_put_at = { 0x0362, "ifff" };
|
||||
const SCRIPT_COMMAND enable_train_traffic = { 0x06d7, "i" };
|
||||
|
||||
const SCRIPT_COMMAND lock_car = { 0x0519, "ii" };
|
||||
|
Loading…
Reference in New Issue
Block a user