mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-19 16:47:14 +02:00
Implement a new event to receive notifications when a player team has changed.
This commit is contained in:
@ -229,6 +229,7 @@ void Core::ResetFunc(PlayerInst & inst)
|
||||
inst.mOnOption.ReleaseGently();
|
||||
inst.mOnAdmin.ReleaseGently();
|
||||
inst.mOnWorld.ReleaseGently();
|
||||
inst.mOnTeam.ReleaseGently();
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
@ -345,6 +346,7 @@ void Core::ResetFunc()
|
||||
Core::Get().mOnPlayerOption.ReleaseGently();
|
||||
Core::Get().mOnPlayerAdmin.ReleaseGently();
|
||||
Core::Get().mOnPlayerWorld.ReleaseGently();
|
||||
Core::Get().mOnPlayerTeam.ReleaseGently();
|
||||
Core::Get().mOnVehicleColour.ReleaseGently();
|
||||
Core::Get().mOnVehicleHealth.ReleaseGently();
|
||||
Core::Get().mOnVehiclePosition.ReleaseGently();
|
||||
@ -453,6 +455,7 @@ Function & Core::GetEvent(Int32 evid)
|
||||
case EVT_PLAYEROPTION: return mOnPlayerOption;
|
||||
case EVT_PLAYERADMIN: return mOnPlayerAdmin;
|
||||
case EVT_PLAYERWORLD: return mOnPlayerWorld;
|
||||
case EVT_PLAYERTEAM: return mOnPlayerTeam;
|
||||
case EVT_VEHICLECOLOUR: return mOnVehicleColour;
|
||||
case EVT_VEHICLEHEALTH: return mOnVehicleHealth;
|
||||
case EVT_VEHICLEPOSITION: return mOnVehiclePosition;
|
||||
@ -611,6 +614,7 @@ Function & Core::GetPlayerEvent(Int32 id, Int32 evid)
|
||||
case EVT_PLAYEROPTION: return inst.mOnOption;
|
||||
case EVT_PLAYERADMIN: return inst.mOnAdmin;
|
||||
case EVT_PLAYERWORLD: return inst.mOnWorld;
|
||||
case EVT_PLAYERTEAM: return inst.mOnTeam;
|
||||
default: return NullFunction();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user