mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-27 08:20:35 +00:00
[saco] Implement/match CVehicle::SetLockedState(...)
This commit is contained in:
parent
fdbaa2a9e6
commit
075133ad72
@ -68,6 +68,7 @@ const SCRIPT_COMMAND play_sound = { 0x018c, "fffi" };
|
|||||||
|
|
||||||
const SCRIPT_COMMAND enable_train_traffic = { 0x06d7, "i" };
|
const SCRIPT_COMMAND enable_train_traffic = { 0x06d7, "i" };
|
||||||
|
|
||||||
|
const SCRIPT_COMMAND lock_car = { 0x0519, "ii" };
|
||||||
const SCRIPT_COMMAND put_train_at = { 0x07c7, "ifff" };
|
const SCRIPT_COMMAND put_train_at = { 0x07c7, "ifff" };
|
||||||
|
|
||||||
const SCRIPT_COMMAND get_active_interior = { 0x077e, "v" };
|
const SCRIPT_COMMAND get_active_interior = { 0x077e, "v" };
|
||||||
|
@ -66,3 +66,16 @@ BOOL CVehicle::IsOccupied()
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
void CVehicle::SetLockedState(int iLocked)
|
||||||
|
{
|
||||||
|
if(!m_pVehicle) return;
|
||||||
|
|
||||||
|
if(iLocked) {
|
||||||
|
ScriptCommand(&lock_car,m_dwGTAId,1);
|
||||||
|
} else {
|
||||||
|
ScriptCommand(&lock_car,m_dwGTAId,0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
@ -20,6 +20,8 @@ public:
|
|||||||
|
|
||||||
void ResetPointers();
|
void ResetPointers();
|
||||||
|
|
||||||
|
void SetLockedState(int iLocked);
|
||||||
|
|
||||||
BOOL HasADriver();
|
BOOL HasADriver();
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user