mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match AddVehicleHook()
This commit is contained in:
parent
21a045c0b1
commit
94f0f68c61
@ -34,6 +34,8 @@ PED_TYPE pedCrimeReportTemp; // pay attention! used in 0x100A1790 ; void __thisc
|
||||
int iRadarColor1=0;
|
||||
DWORD dwSavedCheatFn=0;
|
||||
|
||||
BOOL bAllowVehicleCreation=FALSE;
|
||||
|
||||
float fFarClip=1400.0f;
|
||||
|
||||
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
|
||||
NUDE CheatProcessorHook()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user