DzkAy
Well-known member
- Joined
- Feb 20, 2014
- Messages
- 472
- Reaction score
- 1
I don't know why it crashed all the time when i joined in SA-MP
ANy ideas ?
ANy ideas ?
Code:
wait 0
0B34: samp register_client_command "carkill" to_label @KILL_01
wait 0
:KILL_01
wait 0
0B35: 0@
if 0AD4: $not_used = 0@ "%d" 2@
then 1@ = SAMP.GetVehicleHandleBySAMPVehicleID(2@)
if not Actor.Driving($PLAYER_ACTOR)
then
if 056E: car 1@ defined
then
Actor.StorePos($PLAYER_ACTOR, 9@, 10@, 11@)
wait 200
072A: put_actor $PLAYER_ACTOR into_car 1@ driverseat
Car.Health(1@) = 0.0
0407: store_coords_to 3@ 4@ 5@ from_car 1@ with_offset 0.0 0.0 -4.0
0407: store_coords_to 6@ 7@ 8@ from_car 1@ with_offset 0.0 0.0 4.0
0731: set_car 1@ y_angle_to 180.0
wait 200
Car.PutAt(1@, 3@, 4@, 5@)
wait 200
Car.PutAt(1@, 6@, 7@, 8@)
wait 200
Car.PutAt(1@, 3@, 4@, 5@)
wait 200
Car.PutAt(1@, 6@, 7@, 8@)
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 9@ 10@ 11@
Camera.Restore_WithJumpCut
else 0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FFFFFF}Vehicle Is Not {FF0000}Streamed in / Not Available" color 12451840
end
else 0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FFFFFF}You must {FF0000}Not be DRIVING ! Fool !" color 12451840
end
else 0AF8: samp add_message_to_chat "{4960F5}[CarKill]: {FF0000}/ck <CarID> ..." color 12451840
end
SAMP.CmdRet