diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 6c291cc..a082acd 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -1190,6 +1190,16 @@ void CPlayerPed::StartDancing(int iStyle) //----------------------------------------------------------- +void CPlayerPed::StopDancing() +{ + m_iDanceState = 0; + MATRIX4X4 mat; + GetMatrix(&mat); + TeleportTo(mat.pos.X,mat.pos.Y,mat.pos.Z); +} + +//----------------------------------------------------------- + void CPlayerPed::ProcessVehicleHorn() { if(!m_pPed) return; diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 8bcb00f..c9ffc54 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -102,6 +102,7 @@ public: void ProcessVehicleHorn(); void StartDancing(int iStyle); + void StopDancing(); void HandsUp(); BOOL HasHandsUp(); void HoldItem(int iObject);