Quantcast

Jump to content

» «
Photo

[SA] Bicycle rack Cleo script, Dont work please need help

1 reply to this topic
MrGTAmodsgerman
  • MrGTAmodsgerman

    Rat

  • Members
  • Joined: 02 Jan 2012

#1

Posted 26 April 2014 - 01:31 PM Edited by MrGTAmodsgerman, 26 April 2014 - 01:58 PM.

Hello Guys,
I hope anyone can help me,
i wanna make a Bicycle rack for every cars with the dummyname " bicycle_rack "
But i dont know how to code this :(
Cars with the Dummy name bicycle_rack has a attached BMX on the dummy, and when CJ drive the car with this dummy, and CJ exit the car then

a red marker spawn in the Dummy ( BMX). Then when CJ hit the marker, it takes a animation and the BMX is detached and CJ can drive the BMX.

After that, CJ can attached the BMX to the dummy like before it was.
Is this possible?
In the steering wheels mod is that a custom Dummy.

 

I coded that not like i wanna have it, i code it like i can but nothing does ingame. CJ only exit the car

Any help`?
I am grateful for any response

ideas are welcome

 

Code:

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'BMXRV'

:BMXRV_154
0247: load_model #BMX
038B: load_requested_models
04ED: load_animation "BBALL_pickup"
0001: wait 0 ms
00D6: if
0256:   player $PLAYER_CHAR defined
004D: jump_if_false @BMXRV_154
00D6: if and
0248:   model #BMX available
0AB0:   key_pressed 9
00DD:   actor $PLAYER_ACTOR driving_car_with_model #CAMPER
004D: jump_if_false @BMXRV_154
03C0: 10@ = actor $PLAYER_ACTOR car
04C4: store_coords_to 4@ 5@ 6@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
05CD: AS_actor $PLAYER_ACTOR exit_car 10@
00D6: if
0119:   car 10@ wrecked
004D: jump_if_false @BMXRV_154
03BC: 3@ = create_sphere_at 4@ 5@ 6@ radius 2.0
0683: attach_car 3@ to_car 10@ with_offset 0.0 0.0 0.0 rotation 0.0 0.0 0.0
00D6: if
00FE:   actor $PLAYER_ACTOR sphere 1 in_sphere 4@ 5@ 6@ radius 2.0 2.0 2.0
004D: jump_if_false @BMXRV_154
0605: actor $PLAYER_ACTOR perform_animation_sequence "BBALL_pickup" IFP_file "BSKTBALL" 4.0 loop 0 1 1 0 time -1 // versionA
00A5: 9@ = create_car #BMX at 4@ 5@ 6@
0249: release_model #BMX
0001: wait 3000 ms
0002: jump @BMXRV_255

:BMXRV_255
01C3: remove_references_to_car 2@ // Like turning a car into any random car

Ps: Sorry for my bad english
 


MrGTAmodsgerman
  • MrGTAmodsgerman

    Rat

  • Members
  • Joined: 02 Jan 2012

#2

Posted 29 April 2014 - 08:34 PM Edited by MrGTAmodsgerman, 29 April 2014 - 08:35 PM.

Any Ideas????
I really need Help!


Ps: Sorry for my bad english
 





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users