mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement/match CVehicle::IsDriverLocalPlayer()
This commit is contained in:
parent
a66488518b
commit
7ebeab2055
@ -127,3 +127,15 @@ BOOL CVehicle::IsWrecked()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
BOOL CVehicle::IsDriverLocalPlayer()
|
||||
{
|
||||
if(m_pVehicle) {
|
||||
if((PED_TYPE *)m_pVehicle->pDriver == GamePool_FindPlayerPed()) {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
@ -27,6 +27,7 @@ public:
|
||||
|
||||
BOOL HasSunk();
|
||||
BOOL IsWrecked();
|
||||
BOOL IsDriverLocalPlayer();
|
||||
BOOL HasADriver();
|
||||
|
||||
void SetEngineState(BOOL bState);
|
||||
|
Loading…
x
Reference in New Issue
Block a user