PDA

Просмотр полной версии : Vehicle Invulnerable C++


Arviando
28.03.2015, 20:54
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
30.03.2015, 11:23
bump

SR_team
30.03.2015, 11:27
bump


invulnerable flags = 188

Arviando
31.03.2015, 12:45
@SR_team (https://www.blast.hk/members/11231/)

Код:






#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 :(

Arviando
02.04.2015, 23:57
no one?

Arviando
04.04.2015, 16:27
bumpy