Vehicle Invulnerable C++

Статус
В этой теме нельзя размещать новые ответы.

Arviando

Новичок
Автор темы
17
0
Hello Guys.

Im trying to set the invulnerable flags for my current vehicle.
I found this code here, but this not working. (0.3z R1)

Код:
void VehicleFlags(unsigned char FLAG)
{
unsigned int CurrentVehiclePointer = *(unsigned int*)0xBA18FC;
*(unsigned char*)(CurrentVehiclePointer + 0x42) = FLAG;
}

VehicleFlags(156);

what can be the problem?
 
Последнее редактирование:

Arviando

Новичок
Автор темы
17
0
@SR_team

Код:
#define VEHICLE_FLAGS_INVULNERABLE  ( 4 | 8 | 16 | 128 )

why 188? :D

if i set this with 188 it not works, but if i use a loop it works but the vehiclespeed get not the maximum of the current car. :(
what can be the problem?
i must set this in a loop :(
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.