mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[saco] Implement/match AddVehicleHook()
This commit is contained in:
@ -34,6 +34,8 @@ PED_TYPE pedCrimeReportTemp; // pay attention! used in 0x100A1790 ; void __thisc
|
|||||||
int iRadarColor1=0;
|
int iRadarColor1=0;
|
||||||
DWORD dwSavedCheatFn=0;
|
DWORD dwSavedCheatFn=0;
|
||||||
|
|
||||||
|
BOOL bAllowVehicleCreation=FALSE;
|
||||||
|
|
||||||
float fFarClip=1400.0f;
|
float fFarClip=1400.0f;
|
||||||
|
|
||||||
DWORD dwParam1;
|
DWORD dwParam1;
|
||||||
@ -457,6 +459,23 @@ NUDE TaskExitVehicle()
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
NUDE AddVehicleHook()
|
||||||
|
{
|
||||||
|
_asm pushad
|
||||||
|
|
||||||
|
if(!bAllowVehicleCreation) {
|
||||||
|
_asm popad
|
||||||
|
_asm xor eax, eax
|
||||||
|
_asm ret
|
||||||
|
}
|
||||||
|
|
||||||
|
_asm popad
|
||||||
|
_asm mov eax, 0x421446
|
||||||
|
_asm jmp eax
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
// disable cheat code processing
|
// disable cheat code processing
|
||||||
NUDE CheatProcessorHook()
|
NUDE CheatProcessorHook()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user