dphome
Well-known member
cheat_samp.cpp
cheat_samp.h
USAGE:
Play_Sound(1057, 0, 0, 0);
0xA20E0 - 0.3DL
0x2ACA3C - 0.3DL SAMP_MISC_INFO
Thanks you pnx!
Code:
typedef int(__thiscall *tPlaySound)(void* _this, int sound_id, float x, float y, float z);
tPlaySound SAMP_PlaySound;
void Play_Sound(int sound_id, float x, float y, float z)
{
SAMP_PlaySound = reinterpret_cast<tPlaySound>((PVOID)(g_dwSAMP_Addr + 0xA20E0));
SAMP_PlaySound(*(PVOID **)(g_dwSAMP_Addr + 0x2ACA3C), sound_id, x, y, z);
}
Code:
void Play_Sound(int sound_id, float x, float y, float z);
Play_Sound(1057, 0, 0, 0);
0xA20E0 - 0.3DL
0x2ACA3C - 0.3DL SAMP_MISC_INFO
Thanks you pnx!
Last edited: