The____Mostwanted Posted June 16, 2016 Share Posted June 16, 2016 i made a script that make every car i enter become invulnerable Car.SetImmunities([email protected], 1, 1, 1, 1, 1) but when i would pass mission of jury fury i drive the spand near to other to get explosed and then can't explose the car ... by the way here the code i did it woork but crash when i leave car the error : Address: 004574C0 error C0000005 {$CLEO .cs} //-------------MAIN--------------- :NONAME_2 wait 0 if and Player.Defined($PLAYER_CHAR) Actor.Driving($PLAYER_ACTOR) else_jump @NONAME_2 $CAR = Actor.CurrentCar($PLAYER_ACTOR) Car.SetImmunities($CAR, 1, 1, 1, 1, 1) wait 0 :NONAME_56 wait 0 if not Actor.Driving($PLAYER_ACTOR) else_jump @NONAME_56 Car.SetImmunities($CAR, 0, 0, 0, 0, 0) jump @NONAME_2 end Link to comment Share on other sites More sharing options...
Fooking Rekt Posted June 16, 2016 Share Posted June 16, 2016 I don't know how you can fix this in the script, but you can destroy the Spand Express by pushing it into the water or by entering it while on fire. Link to comment Share on other sites More sharing options...
spaceeinstein Posted June 17, 2016 Share Posted June 17, 2016 (edited) You should replace $CAR with a local variable and check if the car exists before setting some properties to it. while true wait 0 if 0256: player $PLAYER_CHAR defined then if 00E0: player $PLAYER_CHAR in_any_car then 03C1: [email protected] = player $PLAYER_CHAR car_no_save 02AC: set_car [email protected] immunities 1 1 1 1 1 else if 8119: not car [email protected] wrecked then 02AC: set_car [email protected] immunities 0 0 0 0 0 end end endend Edited June 17, 2016 by spaceeinstein The____Mostwanted 1 Link to comment Share on other sites More sharing options...
The____Mostwanted Posted June 17, 2016 Author Share Posted June 17, 2016 You should replace $CAR with a local variable and check if the car exists before setting some properties to it. while true wait 0 if 0256: player $PLAYER_CHAR defined then if 00E0: player $PLAYER_CHAR in_any_car then 03C1: [email protected] = player $PLAYER_CHAR car_no_save 02AC: set_car [email protected] immunities 1 1 1 1 1 else if 8119: not car [email protected] wrecked then 02AC: set_car [email protected] immunities 0 0 0 0 0 end end endend I LOVE U (NOT HOMO) THANKS !!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now