FANGTA Posted August 31, 2007 Share Posted August 31, 2007 Hi. Somebody know how to create properties with pickups and vehicles which unlocks when you buy a propertie. Link to comment Share on other sites More sharing options...
Knowledge Novice Posted August 31, 2007 Share Posted August 31, 2007 See if this helps. Take a look at the 6th post down I think. Click here: >SA SCM Buying Things< It shows how to replace an existing buyable_asset but it should give you an idea of what the process involves. Hope this helps. Later. Link to comment Share on other sites More sharing options...
FANGTA Posted September 3, 2007 Author Share Posted September 3, 2007 (edited) I have this problem when i create new properties i coding all and i must change this op code: :BUYPRO1_1 Its original san andreas BUYPRO1_1 :BUYPRO1_103A4: name_thread 'BUYPRO1' 0004: $ON_MISSION = 1;; integer values0001: wait 0 ms0006: @34 = 0;; integer values0169: set_fade_color 0 0 1 01B4: set_player $PLAYER_CHAR frozen_state 0 (frozen) 02A3: toggle_widescreen 1 (on) 0871: init_jump_table $1735 total_jumps 32 0 £BUYPRO1_325 jumps 0 £BUYPRO1_12 1 £BUYPRO1_21 2 £BUYPRO1_29 3 £BUYPRO1_46 4 £BUYPRO1_56 5 £BUYPRO1_66 6 £BUYPRO1_76 0872: jump_table_jumps 7 £BUYPRO1_86 8 £BUYPRO1_96 9 £BUYPRO1_106 10 £BUYPRO1_116 11 £BUYPRO1_126 12 £BUYPRO1_136 13 £BUYPRO1_146 14 £BUYPRO1_156 15 £BUYPRO1_166 0872: jump_table_jumps 16 £BUYPRO1_175 17 £BUYPRO1_185 18 £BUYPRO1_195 19 £BUYPRO1_204 20 £BUYPRO1_213 21 £BUYPRO1_222 22 £BUYPRO1_232 23 £BUYPRO1_241 24 £BUYPRO1_250 0872: jump_table_jumps 25 £BUYPRO1_259 26 £BUYPRO1_269 27 £BUYPRO1_278 28 £BUYPRO1_288 29 £BUYPRO1_298 30 £BUYPRO1_307 31 £BUYPRO1_316 -1 £BUYPRO1_325 -1 £BUYPRO1_325 Its edited by me: :BUYPRO1_103A4: name_thread 'BUYPRO1' 0004: $ON_MISSION = 1;; integer values0001: wait 0 ms0006: @34 = 0;; integer values0169: set_fade_color 0 0 1 01B4: set_player $PLAYER_CHAR frozen_state 0 (frozen) 02A3: toggle_widescreen 1 (on) 0871: init_jump_table $1735 total_jumps 33 0 £BUYPRO1_325 jumps 0 £BUYPRO1_12 1 £BUYPRO1_21 2 £BUYPRO1_29 3 £BUYPRO1_46 4 £BUYPRO1_56 5 £BUYPRO1_66 6 £BUYPRO1_76 0872: jump_table_jumps 7 £BUYPRO1_86 8 £BUYPRO1_96 9 £BUYPRO1_106 10 £BUYPRO1_116 11 £BUYPRO1_126 12 £BUYPRO1_136 13 £BUYPRO1_146 14 £BUYPRO1_156 15 £BUYPRO1_166 0872: jump_table_jumps 16 £BUYPRO1_175 17 £BUYPRO1_185 18 £BUYPRO1_195 19 £BUYPRO1_204 20 £BUYPRO1_213 21 £BUYPRO1_222 22 £BUYPRO1_232 23 £BUYPRO1_241 24 £BUYPRO1_250 0872: jump_table_jumps 25 £BUYPRO1_259 26 £BUYPRO1_269 27 £BUYPRO1_278 28 £BUYPRO1_288 29 £BUYPRO1_298 30 £BUYPRO1_307 31 £BUYPRO1_3160872: jump_table_jumps 32 £BUYPRO1_97 -1 £BUYPRO1_325 -1 £BUYPRO1_325 But when i compile i have this problem: http://www.fotosik.pl/showFullSize.php?id=ba5f0d14534c67a4 I change the op code to this: :BUYPRO1_103A4: name_thread 'BUYPRO1' 0004: $ON_MISSION = 1;; integer values0001: wait 0 ms0006: @34 = 0;; integer values0169: set_fade_color 0 0 1 01B4: set_player $PLAYER_CHAR frozen_state 0 (frozen) 02A3: toggle_widescreen 1 (on) 0871: init_jump_table $1735 total_jumps 33 0 £BUYPRO1_325 jumps 0 £BUYPRO1_12 1 £BUYPRO1_21 2 £BUYPRO1_29 3 £BUYPRO1_46 4 £BUYPRO1_56 5 £BUYPRO1_66 6 £BUYPRO1_76 0872: jump_table_jumps 7 £BUYPRO1_86 8 £BUYPRO1_96 9 £BUYPRO1_106 10 £BUYPRO1_116 11 £BUYPRO1_126 12 £BUYPRO1_136 13 £BUYPRO1_146 14 £BUYPRO1_156 15 £BUYPRO1_166 0872: jump_table_jumps 16 £BUYPRO1_175 17 £BUYPRO1_185 18 £BUYPRO1_195 19 £BUYPRO1_204 20 £BUYPRO1_213 21 £BUYPRO1_222 22 £BUYPRO1_232 23 £BUYPRO1_241 24 £BUYPRO1_250 0872: jump_table_jumps 25 £BUYPRO1_259 26 £BUYPRO1_269 27 £BUYPRO1_278 28 £BUYPRO1_288 29 £BUYPRO1_298 30 £BUYPRO1_307 31 £BUYPRO1_316 -1 £BUYPRO1_325 -1 £BUYPRO1_3250872: jump_table_jumps 32 £BUYPRO1_97 But when i compile i have this problem: http://www.fotosik.pl/showFullSize.php?id=ecfb79967d0bf230 Sure i add the label :BUYPRO1_97 with all parameters down;) Its this label: :BUYPRO1_97015F: set_camera_position 2485.132 -1685.405 13.50913 0.0 0.0 0.0 0160: point_camera 2484.216 -1685.0649 13.72183 2 0623: increase_stat 15 by $FANGTA_PRICE ;; integer values0164: disable_marker $FANGTA_ICON 0570: $FANGTA_ICON = create_asset_radar_marker_with_icon 35 at $FANGTA_BUY_ASSET_PICKUP_X $FANGTA_BUY_ASSET_PICKUP_Y $FANGTA_BUY_ASSET_PICKUP_Z 018B: show_on_radar $FANGTA_ICON 2 09B4: $FANGTA_BUY_ASSET_PICKUP_X $FANGTA_BUY_ASSET_PICKUP_Y 10.0 16384 1 030C: set_mission_points += 1 0002: jump £BUYPRO1_325 In this label it not found a error. Please help Edited September 3, 2007 by FANGTA Link to comment Share on other sites More sharing options...
FANGTA Posted September 3, 2007 Author Share Posted September 3, 2007 (edited) ok i make this and its compile: :BUYPRO1_103A4: name_thread 'BUYPRO1' 0004: $ON_MISSION = 1 ;; integer values0001: wait 0 ms0006: @34 = 0 ;; integer values0169: set_fade_color 0 0 1 01B4: set_player $PLAYER_CHAR frozen_state 0 (frozen) 02A3: toggle_widescreen 1 (on) 0871: init_jump_table $1735 total_jumps 33 0 £BUYPRO1_325 jumps 0 £BUYPRO1_12 1 £BUYPRO1_21 2 £BUYPRO1_29 3 £BUYPRO1_46 4 £BUYPRO1_56 5 £BUYPRO1_66 6 £BUYPRO1_76 0872: jump_table_jumps 7 £BUYPRO1_86 8 £BUYPRO1_96 9 £BUYPRO1_106 10 £BUYPRO1_116 11 £BUYPRO1_126 12 £BUYPRO1_136 13 £BUYPRO1_146 14 £BUYPRO1_156 15 £BUYPRO1_166 0872: jump_table_jumps 16 £BUYPRO1_175 17 £BUYPRO1_185 18 £BUYPRO1_195 19 £BUYPRO1_204 20 £BUYPRO1_213 21 £BUYPRO1_222 22 £BUYPRO1_232 23 £BUYPRO1_241 24 £BUYPRO1_250 0872: jump_table_jumps 25 £BUYPRO1_259 26 £BUYPRO1_269 27 £BUYPRO1_278 28 £BUYPRO1_288 29 £BUYPRO1_298 30 £BUYPRO1_307 31 £BUYPRO1_316 32 £BUYPRO1_97 -1 £BUYPRO1_325 but i have next bug when i click new game and i seat to a bike and drive a meter its crash game and exit to windows. please help Edited September 3, 2007 by FANGTA Link to comment Share on other sites More sharing options...
FANGTA Posted September 3, 2007 Author Share Posted September 3, 2007 Ok i make my own propertie. The crash of the game will be but i have too big memory definied;) Link to comment Share on other sites More sharing options...
FANGTA Posted September 4, 2007 Author Share Posted September 4, 2007 hi. i reduced all bugs but i dont know how to create weapon or cars pickups whos unlocks when the property is buy. Please help. Link to comment Share on other sites More sharing options...
FANGTA Posted September 8, 2007 Author Share Posted September 8, 2007 i have next problem. Somebody know how to add threads to property code whos unlocks when property is bought??. Link to comment Share on other sites More sharing options...
giddyup Posted November 4, 2007 Share Posted November 4, 2007 to add unlocks you need to place the line the bit is telling it what to do when the property is bought: EG. If you wanted a weapon to spawn after you bought this house: :BUYPRO1_166015F: set_camera_position 894.7908 -1663.996 20.202 0.0 0.0 0.0 0160: point_camera 894.803 -1663.002 20.0891 2 0623: increase_stat 15 by $1668;; integer values0164: disable_marker $1636 0570: $1636 = create_asset_radar_marker_with_icon 35 at $BUY_ASSET_PICKUP_X(15) $BUY_ASSET_PICKUP_Y(15) $BUY_ASSET_PICKUP_Z(15) 018B: show_on_radar $1636 2 09B4: $BUY_ASSET_PICKUP_X(15) $BUY_ASSET_PICKUP_Y(15) 10.0 16384 1 030C: set_mission_points += 1 0002: jump £BUYPRO1_325 You would put it here somewhere (without the skipped lines) :BUYPRO1_166015F: set_camera_position 894.7908 -1663.996 20.202 0.0 0.0 0.0 0160: point_camera 894.803 -1663.002 20.0891 2 0623: increase_stat 15 by $1668;; integer values0164: disable_marker $1636032B: $811 = create weapon pickup #M4 15 ammo 60 at 2021.879 1001.467 10.32030570: $1636 = create_asset_radar_marker_with_icon 35 at $BUY_ASSET_PICKUP_X(15) $BUY_ASSET_PICKUP_Y(15) $BUY_ASSET_PICKUP_Z(15) 018B: show_on_radar $1636 2 09B4: $BUY_ASSET_PICKUP_X(15) $BUY_ASSET_PICKUP_Y(15) 10.0 16384 1 030C: set_mission_points += 1 0002: jump £BUYPRO1_325 same with starting a thread: :BUYPRO1_166015F: set_camera_position 894.7908 -1663.996 20.202 0.0 0.0 0.0 0160: point_camera 894.803 -1663.002 20.0891 2 0623: increase_stat 15 by $1668;; integer values0164: disable_marker $1636004F: create_thread ££MYTHREAD0570: $1636 = create_asset_radar_marker_with_icon 35 at $BUY_ASSET_PICKUP_X(15) $BUY_ASSET_PICKUP_Y(15) $BUY_ASSET_PICKUP_Z(15) 018B: show_on_radar $1636 2 09B4: $BUY_ASSET_PICKUP_X(15) $BUY_ASSET_PICKUP_Y(15) 10.0 16384 1 030C: set_mission_points += 1 0002: jump £BUYPRO1_325 Link to comment Share on other sites More sharing options...
P.I.M.P_PL Posted November 5, 2007 Share Posted November 5, 2007 (edited) hmmm... thanks but this thread can have some mission(that i know) but when i add to this some thread(who be in the main section but not defined to start this)when i buy this its not showing(for example in thread be the some pickup who you pick you be die behind the ryder house but when i go to this its not be this pickup its be nothing - its only example;)) i can define thel ine with the thread?? and what i must correct to this work?? and thanks to your help and maybe i can add some vehicles pickup to this code?? Edited November 5, 2007 by P.I.M.P_PL Link to comment Share on other sites More sharing options...
fantomcat_2k Posted February 21, 2008 Share Posted February 21, 2008 Ok, so if i add this to the bottom of MAIN, eg, above mission 0, it will create a buyable asset on these coordinates? So what about at money marker that spawns after you've bought it? does any one know the code for that? :BUYPRO1_166 015F: set_camera_position 894.7908 -1663.996 20.202 0.0 0.0 0.0 0160: point_camera 894.803 -1663.002 20.0891 2 0623: increase_stat 15 by $1668;; integer values 0164: disable_marker $1636 032B: $811 = create weapon pickup #M4 15 ammo 60 at 2021.879 1001.467 10.3203 0570: $1636 = create_asset_radar_marker_with_icon 35 at $BUY_ASSET_PICKUP_X(15) $BUY_ASSET_PICKUP_Y(15) $BUY_ASSET_PICKUP_Z(15) 018B: show_on_radar $1636 2 09B4: $BUY_ASSET_PICKUP_X(15) $BUY_ASSET_PICKUP_Y(15) 10.0 16384 1 030C: set_mission_points += 1 0002: jump £BUYPRO1_325 Then add the money marker after it? Link to comment Share on other sites More sharing options...
P.I.M.P_PL Posted February 23, 2008 Share Posted February 23, 2008 Ok, so if i add this to the bottom of MAIN, eg, above mission 0, it will create a buyable asset on these coordinates?So what about at money marker that spawns after you've bought it? does any one know the code for that? :BUYPRO1_166 015F: set_camera_position 894.7908 -1663.996 20.202 0.0 0.0 0.0 0160: point_camera 894.803 -1663.002 20.0891 2 0623: increase_stat 15 by $1668;; integer values 0164: disable_marker $1636 032B: $811 = create weapon pickup #M4 15 ammo 60 at 2021.879 1001.467 10.3203 0570: $1636 = create_asset_radar_marker_with_icon 35 at $BUY_ASSET_PICKUP_X(15) $BUY_ASSET_PICKUP_Y(15) $BUY_ASSET_PICKUP_Z(15) 018B: show_on_radar $1636 2 09B4: $BUY_ASSET_PICKUP_X(15) $BUY_ASSET_PICKUP_Y(15) 10.0 16384 1 030C: set_mission_points += 1 0002: jump £BUYPRO1_325 Then add the money marker after it? hmmm money marker you must search for it in some codes(search with word: money) bye Link to comment Share on other sites More sharing options...
fantomcat_2k Posted February 29, 2008 Share Posted February 29, 2008 No No, i can make a money marker, but thats no fun, i was wanting to add a buyable asset in the game, like a TV shop or something, where i can come back and pick up its profits etc. I was just trying to clarify the code, Im under the impression that the code i've just used is enough to make a buyable assest, but not enough to add a money pickup, which actually regeerates itself. I was hoping that i could make a few things, like a arms shop which maybe worked for me?, hows about you buty ammo nation for 1million, and then it generates money back to you? this could be a good idea for a mod, what do you think? Link to comment Share on other sites More sharing options...
lzarwisa Posted July 21, 2008 Share Posted July 21, 2008 Right sorry... but i dont get this one bit! Can someone like make a tutorial on this? I would be very greatfull and so would proberbly alot of others! 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