Jump to content


Photo
- - - - -

Vice City Probleme Coding Main.scm


  • Please log in to reply
No replies to this topic

#1 Fcr17000face

Fcr17000face

    Squatteur

  • MacreaCitizen
  • 2 posts

Posted 13 December 2013 - 06:13 PM

Bonjour à tous, actuellement j'aimerais créer de nouveaux lieux d'achats de maison dans vice city, j'arrive à mettre l'icone pour acheter dans le jeu a l'endroit voulu mais quand je vais dessus et que j'appuie pour acheter il ne se passe rien a par que je perds de l'argent. Si vous pouviez m'aider svp je sais plus quoi faire pour qe sa marche.

 

POUR CE QUI EST DE LA MISSION EN ELLE MËME J'ai fait sa :

 

 

;-------------Mission 97---------------
; Originally: (no description)


:Label000001
03A4: name_thread "PLCBUY"
0004: $ONMISSION =  1?  \\ integer values
0001: wait  0? ms
0164: disable_marker  896??
030C: set_mission_points +=  1?
0169: set_fade_color  0?  0?  1?
016A: fade  0? ()  500& ms
01B4: set_player $PLAYER_CHAR frozen_state  0? (frozen)
03BF: set_player $PLAYER_CHAR ignored_by_everyone_to  1? (true)
03F4:  0? (clear) cars_can_be_damaged

:Label000002
00D6: if  0?
016B:   fading
004D: jump_if_false £Label000004
0001: wait  0? ms
00D6: if  0?
8256:   NOT   player $PLAYER_CHAR defined
004D: jump_if_false £Label000003
0570:  896?? = create_asset_radar_marker_with_icon  19? at  509.032!  514.343!  11.5!
018B: show_on_radar  896??  2?
004F: create_thread ££Label0159D8
004E: end_thread

:Label000003
0002: jump £Label000002

:Label000004
0570:  896?? = create_asset_radar_marker_with_icon  19? at  509.032!  514.343!  11.5!
018B: show_on_radar  896??  2?
004F: create_thread ££Label0159D8
0395: clear_area  1? at 509.032! 514.343! range 11.5!  1!
0055: put_player $PLAYER_CHAR at 509.032!  514.343!  11.5!
0171: set_player $PLAYER_CHAR z_angle_to  243!
02A3: toggle_widescreen  1? (on)
0169: set_fade_color  0?  0?  1?
016A: fade  1? (back)  500& ms
015F: set_camera_position 509.032!  495.343!  14.5!  0!  0!  0!
0160: point_camera 509.032!  495.343!  14.5!  2?

:Label000005
00D6: if  0?
016B:   fading
004D: jump_if_false £Label000007
0001: wait  0? ms
00D6: if  0?
8256:   NOT   player $PLAYER_CHAR defined
004D: jump_if_false £Label000006
004E: end_thread

:Label000006
0002: jump £Label000005

:Label000007
0004:  19532?? =  1?  \\ integer values
0004:  19536?? =  1?  \\ integer values
01E3: text_1number_styled "PLCBUY"  776??  5000& ms  6? \\ Police Street purchased : $~1~
0529: unknown_add  776?? to_money_spent_on_property_stats
0542: add_property  14? to_property_own_stats
0394: play_music  1?
043C: unknown_set_game_sounds  0?
0001: wait  2000& ms
00BC: text_highpriority "BUYSAVE"  3000& ms  1? \\ ~g~You can now save your game here when not on a mission.
0001: wait  3000& ms
0169: set_fade_color  0?  0?  1?
016A: fade  0? ()  500& ms

:Label000008
00D6: if  0?
016B:   fading
004D: jump_if_false £Label000010
0001: wait  0? ms
00D6: if  0?
8256:   NOT   player $PLAYER_CHAR defined
004D: jump_if_false £Label000009
043C: unknown_set_game_sounds  1?
004E: end_thread

:Label000009
0002: jump £Label000008

:Label000010
0373: set_camera_directly_behind_player
02EB: restore_camera_with_jumpcut
01B4: set_player $PLAYER_CHAR frozen_state  1? (unfrozen)
03BF: set_player $PLAYER_CHAR ignored_by_everyone_to  0? (false)
03F4:  1? (set) cars_can_be_damaged
02A3: toggle_widescreen  0? (off)
0169: set_fade_color  0?  0?  1?
016A: fade  1? (back)  500& ms
0050: gosub ££Label01669A
043C: unknown_set_game_sounds  1?
0004: $ONMISSION =  0?  \\ integer values
00D8: mission_cleanup
004E: end_thread
0051: return 

 

pour ce qui est de l'emplacement de l'icone d'achat :

 

0518:  892?? = create_available_asset_pickup "PLC_L" at 509.032!  514.343!  11.8! price  776?? \\ Press the ~h~~k~~PED_ANSWER_PHONE~ ~w~button to purchase Police Street for $~1~
0570:  896?? = create_asset_radar_marker_with_icon  25? at 509.032!  514.343!  11.8!
0164: disable_marker  896??

 

pour que la mission se lance :

 

:Label010499
03A4: name_thread "PLCBY"

:Label010DA4
0001: wait $DEFAULT_WAIT_TIME ms
00D6: if  0?
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ££Label010DF1
00D6: if  0?
0038:   $ONMISSION ==  0?  \\ integer values
004D: jump_if_false ££Label010DF1
00D6: if  0?
03EE:   is_not_wanted $PLAYER_CHAR
004D: jump_if_false ££Label010DF1
00D6: if  0?
0214:   pickup  892?? picked_up
004D: jump_if_false ££Label010DF1
0417: start_mission  97?
004E: end_thread

:Label010DF1
0002: jump ££Label010DA4






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users