mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement and match CPlayerPed::SetActionTrigger(...)
This commit is contained in:
parent
526dff8889
commit
9c4d7692a6
@ -237,6 +237,15 @@ BYTE CPlayerPed::GetActionTrigger()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::SetActionTrigger(BYTE byteTrigger)
|
||||
{
|
||||
if(!m_pPed) return;
|
||||
|
||||
m_pPed->dwAction = byteTrigger;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
|
||||
{
|
||||
if(!m_pPed) return;
|
||||
|
@ -36,6 +36,7 @@ public:
|
||||
void SetStateFlags(DWORD dwStateFlags);
|
||||
BOOL IsDead();
|
||||
BYTE GetActionTrigger();
|
||||
void SetActionTrigger(BYTE byteTrigger);
|
||||
|
||||
WORD GetAmmo();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user