mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[saco] Implement/match CPlayerPed::SetMoney(...)
This commit is contained in:
@ -405,6 +405,14 @@ void CPlayerPed::SetAnimationSet(PCHAR szAnim)
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
void CPlayerPed::SetMoney(int iAmount)
|
||||||
|
{
|
||||||
|
ScriptCommand(&set_actor_money,m_dwGTAId,0);
|
||||||
|
ScriptCommand(&set_actor_money,m_dwGTAId,iAmount);
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
void CPlayerPed::StartGoggles()
|
void CPlayerPed::StartGoggles()
|
||||||
{
|
{
|
||||||
if (HasGoggles()) return;
|
if (HasGoggles()) return;
|
||||||
|
@ -54,6 +54,8 @@ public:
|
|||||||
BOOL HasGoggles();
|
BOOL HasGoggles();
|
||||||
|
|
||||||
void SetAnimationSet(PCHAR szAnim);
|
void SetAnimationSet(PCHAR szAnim);
|
||||||
|
void SetMoney(int iAmount);
|
||||||
|
|
||||||
CPlayerPed();
|
CPlayerPed();
|
||||||
|
|
||||||
//char _gap0[813];
|
//char _gap0[813];
|
||||||
|
@ -75,6 +75,8 @@ const SCRIPT_COMMAND is_animation_loaded = { 0x04EE, "s" };
|
|||||||
const SCRIPT_COMMAND release_animation = { 0x04EF, "s" };
|
const SCRIPT_COMMAND release_animation = { 0x04EF, "s" };
|
||||||
|
|
||||||
const SCRIPT_COMMAND set_actor_weapon_droppable = { 0x087e, "ii" };
|
const SCRIPT_COMMAND set_actor_weapon_droppable = { 0x087e, "ii" };
|
||||||
|
const SCRIPT_COMMAND set_actor_money = { 0x03fe, "ii" };
|
||||||
|
|
||||||
const SCRIPT_COMMAND text_clear_all = { 0x00be, "" };
|
const SCRIPT_COMMAND text_clear_all = { 0x00be, "" };
|
||||||
|
|
||||||
const SCRIPT_COMMAND create_radar_marker_icon = { 0x0570, "fffiv" };
|
const SCRIPT_COMMAND create_radar_marker_icon = { 0x0570, "fffiv" };
|
||||||
|
Reference in New Issue
Block a user