Hey guys , who can help me for on/off fuction..
I want use this code for command..
example: /speed1 ant o driving on 90km/h , /speed1 again, and come normaly speed...
Srr for bad english
Code:
:ACC_20
wait 1
if and
Actor.Driving($PLAYER_ACTOR)
84A7: not actor $PLAYER_ACTOR driving_boat
jf @ACC_20
$C = Actor.CurrentCar($PLAYER_ACTOR)
Car.SetImmunities($C, 1, 1, 1, 1, 1)
if and
0AB0: key_pressed 57
0AB0: key_pressed 221
jf @ACC_94
Car.SetSpeedInstantly($C, 90.0)
0ACD: show_text_highpriority "~R~[3]~W~ - Pavara." time 1337
:ACC_94
wait 1
if and
Actor.Driving($PLAYER_ACTOR)
84A7: not actor $PLAYER_ACTOR driving_boat
0AB0: key_pressed 57
0AB0: key_pressed 219
jf @ACC_134
Car.SetSpeedInstantly($C, 60.0)
0ACD: show_text_highpriority "~R~[2]~W~ - Pavara." time 1337
:ACC_134
wait 1
if and
Actor.Driving($PLAYER_ACTOR)
84A7: not actor $PLAYER_ACTOR driving_boat
0AB0: key_pressed 57
0AB0: key_pressed 80
else_jump @ACC_20
Car.SetSpeedInstantly($C, 25.0)
0ACD: show_text_highpriority "~R~[1]~W~ - Pavara." time 1337
if or
Car.Wrecked($C)
02BF: car $C sunk
01F4: car $C flipped
8202: not actor $PLAYER_ACTOR near_car $C radius 150.0 150.0 sphere 0
jf @ACC_20
Car.RemoveReferences($C)
jump @ACC_20