sci4me Posted June 23, 2011 Share Posted June 23, 2011 Hi all, I have been trying to make a buyable house for awhile now... and i cant seem to figure it out... Can someone help me? i want it to be EXACTLY like the regulat one.. goto the green house pickup, and press tab, play the music with the widescreen, and take my money, then open up the interior. PLEASE HELP ME!!!! Link to comment Share on other sites More sharing options...
Adler Posted June 23, 2011 Share Posted June 23, 2011 Is this for a CLEO/SCM mod or for a PAWN script (I'm asking because of your SA:MP server advertised in your signature)? The CLEO/SCM method seems pretty easy to make but has three parts to it: 1) Make an asset_pickup in front of the house which will trigger the short cutscene with the "music." See threads "BUY1" "BUY2" "BUY3" "BUY_PRO" and the mission "BUYPRO1" in the main.scm to see how the game does it. 2) Create a teleport marker (or and EnEx marker if you'd prefer not to script it). Here is an example script. 3) Place a save point in your house. Refer here for details. As for the PAWN method: No clue. Link to comment Share on other sites More sharing options...
sci4me Posted June 23, 2011 Author Share Posted June 23, 2011 (edited) I meant the SCM method. I kinda quit on sa-mp lol. Heres what I have so far... :BuyHousethread "BuyHouse" 0518: $House = create_available_asset_pickup 'PROP_3' at 137.06 1934.6522 19.2586 price 5000000 // Press ~k~~PED_ANSWER_PHONE~ to buy this property.0570: $8964 = create_asset_radar_marker_with_icon 31 at 137.06 1934.6522 19.2586:BUY1WAIT 00214: pickup $House picked_up IF @BUY1JUMP @HOUSEBOUGHT:HOUSEBOUGHT03BF: set_player $PLAYER_CHAR ignored_by_everyone 10169: set_fade_color_RGB 0 0 1 Player.CanMove($PLAYER_CHAR) = False02A3: enable_widescreen 1 $ONMISSION = 1 Camera.SetPosition(136.2481, 1924.7318, 25.1699, 0.0, 0.0, 0.0)Camera.PointAt(137.06, 1934.6522, 19.2586, 2)00BA: show_text_styled GXT 'BUYPRO' time 5000 style 2 // Property bought!0394: play_music 2 wait 5000 00BE: text_clear_all Camera.SetBehindPlayerCamera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = True03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 02A3: enable_widescreen 0 $ONMISSION = 0 01BD: $CURRENT_TIME_IN_MS = current_time_in_ms mission_cleanup end_thread As you can tell, im a bit of a noob. But anyway, I get this error: Unknown directive @BUY1. What to do? Thanks for all the help! PLEASE REPLY! Edited June 23, 2011 by sci4me Link to comment Share on other sites More sharing options...
fireguy109 Posted June 23, 2011 Share Posted June 23, 2011 It should not be IF @BUY1 it should be jf @BUY1 Link to comment Share on other sites More sharing options...
sci4me Posted June 23, 2011 Author Share Posted June 23, 2011 :SAVEthread "SAVE" $SAVE_X = 214.8009 $SAVE_Y = 1913.4453$SAVE_Z = 17.6406 :SAVE_38wait 0if 0004: $Bought = 1 else_jump @SAVE_380395: clear_area 1 at $SAVE_X $SAVE_Y $SAVE_Z radius 1.0 $SAVE_PICKUP = Pickup.Create(#PICKUPSAVE, 3, $SAVE_X, $SAVE_Y, $SAVE_Z)0570: [email protected] = create_asset_radar_marker_with_icon 35 at $SAVE_X $SAVE_Y $SAVE_Z 018B: set_marker [email protected] radar_mode 2 :SAVE_97wait 100 Pickup.Picked_up($SAVE_PICKUP)else_jump @SAVE_97 $ONMISSION = 1 Player.CanMove($PLAYER_CHAR) = False03D8: show_save_screen :SAVE_129wait 100 03D9: save_done else_jump @SAVE_129 Pickup.Destroy($SAVE_PICKUP):SAVE_147wait 100 Player.Defined($PLAYER_CHAR)else_jump @SAVE_147 Camera.Restore_WithJumpCutCamera.SetBehindPlayerPlayer.CanMove($PLAYER_CHAR) = True$ONMISSION = 0 :SAVE_181wait 0 80EC: not actor $PLAYER_ACTOR 0 near_point 214.8009 1913.4453 radius 2.5 2.5 else_jump @SAVE_181 jump @SAVE_38 end_thread :BuyHousethread "BuyHouse" 0518: $House = create_available_asset_pickup 'PROP_3' at 137.06 1934.6522 19.2586 price 5000000 // Press ~k~~PED_ANSWER_PHONE~ to buy this property.0570: $8964 = create_asset_radar_marker_with_icon 31 at 137.06 1934.6522 19.2586:BUY1WAIT 00214: pickup $House picked_up jf @BUY1JUMP @HOUSEBOUGHT:HOUSEBOUGHT03BF: set_player $PLAYER_CHAR ignored_by_everyone 10169: set_fade_color_RGB 0 0 1 Player.CanMove($PLAYER_CHAR) = False02A3: enable_widescreen 1 $ONMISSION = 1 Camera.SetPosition(136.2481, 1924.7318, 25.1699, 0.0, 0.0, 0.0)Camera.PointAt(137.06, 1934.6522, 19.2586, 2)00BA: show_text_styled GXT 'BUYPRO' time 5000 style 2 // Property bought!0394: play_music 2 wait 5000 00BE: text_clear_all Camera.SetBehindPlayerCamera.Restore_WithJumpCutPlayer.CanMove($PLAYER_CHAR) = True03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 02A3: enable_widescreen 0 $ONMISSION = 0 01BD: $CURRENT_TIME_IN_MS = current_time_in_ms $Bought = 1mission_cleanup end_thread I can buy area 51, but the save thing doesnt appear... is there any way I could make these into 1 thread? Link to comment Share on other sites More sharing options...
Adler Posted June 23, 2011 Share Posted June 23, 2011 Yeah just move the Save thread after the BuyHouse thread. In the BUY1 loop you can remove: JUMP @HOUSEBOUGHT since the HOUSEBOUGHT label is right after it. Link to comment Share on other sites More sharing options...
BnB Posted June 24, 2011 Share Posted June 24, 2011 Use the model id of #PICKUPSAVE which is 1277. Link to comment Share on other sites More sharing options...
toddlar Posted July 20, 2012 Share Posted July 20, 2012 Anyone know how to finish this off? 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