Jump to content

help with mod


theblackduck

Recommended Posts

theblackduck

Okay i tried to make a quiet advanced mod according to me atleast...its like a kind of a super hero mod when player actor has pressed key "F" will cj burn but not get hurt though..and when he aim at a ped he will also burn but die uhm and it will only work on criminals such as gangs,dealers and so on is it someone that can help? here is the code

 

 

{$CLEO .cs}//-------------MAIN---------------03A4: name_thread "FLAME" :FLAME_10001: wait 0 ms 00D6: if and044B:   actor $PLAYER_ACTOR on_foot 0AB0:   key_pressed 7003E5: show_text_box 'FLAME1' 0002: jump @FLAME_42:FLAME_420001: wait 50 ms 055D: make_player $PLAYER_CHAR fireproof 1 0326: 4@ = create_actor $PLAYER_ACTOR fire 0002: jump @FLAME_9 :FLAME_90001: wait 50 ms00D6: if 00E1:   player 0 pressed_key 60AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 1@ closest_ped_to 2@ 0326: 3@ = create_actor 2@ fire :FLAME_560001: wait 50 ms00D6: if and0AB0:   key_pressed 70055D: make_player $PLAYER_CHAR fireproof 00002: jump @FLAME_1

 

Edited by theblackduck
Link to comment
Share on other sites

If you want to do a mod request, do it in this topic.

Anyway, I'll give you some tips.

In the first label, and in all loops, you have to add jump_if_false, else_jump, or jf at the end. Also, you don't really have to use jump at the end of a label, since t jumps automatically to the next label.

The code should look like this:

 

 

{$CLEO .cs}//-------------MAIN---------------03A4: name_thread "FLAME" :FLAME_10001: wait 0 ms 00D6: if and044B:   actor $PLAYER_ACTOR on_foot 0AB0:   key_pressed 7003E5: show_text_box 'FLAME1' :FLAME_420001: wait 50 ms 055D: make_player $PLAYER_CHAR fireproof 1 0326: 4@ = create_actor $PLAYER_ACTOR fire 0002: jump @FLAME_9 :FLAME_90001: wait 50 ms00D6: if 00E1:   player 0 pressed_key 6jf @FLAME_90AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 1@ closest_ped_to 2@ 0326: 3@ = create_actor 2@ fire :FLAME_560001: wait 50 ms00D6: if and0AB0:   key_pressed 70jf @FLAME_56055D: make_player $PLAYER_CHAR fireproof 00002: jump @FLAME_1

 

Link to comment
Share on other sites

If you want to do a mod request, do it in this topic.

He didn't requested anything he posted his code.

 

Also I doubt that you corrected something.

Link to comment
Share on other sites

But someone want to help me with this mod?,i will put it online so the one that help me will get credit aswell...here is the new 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 "BURN" :BURN_80001: wait 0 ms 00D6: if 056D:   actor $PLAYER_ACTOR defined 00D6: if and044B:   actor $PLAYER_ACTOR on_foot 0AB0:   key_pressed 79 0AB0:   key_pressed 78 004D: jump_if_false @BURN_8 00BC: show_text_highpriority GXT 'FIRE2' time 1000 flag 10002: jump @BURN_52:BURN_520001: wait 50 ms 0326: 6@ = create_actor $PLAYER_ACTOR fire 055D: make_player $PLAYER_ACTOR fireproof 1 0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 1@ closest_ped_to 2@ 004D: jump_if_false @BURN_520002: jump @BURN_6:BURN_60001: wait 0 ms 00E1:   player 0 pressed_key 60635: AS_actor $PLAYER_ACTOR aim_at_actor 2@ 100 ms 05BF: AS_actor 2@ look_at_actor $PLAYER_ACTOR 3000 ms 05BF: AS_actor $PLAYER_ACTOR look_at_actor 2@ 30000 ms 0638: AS_actor 2@ stay_put 1 0187: 7@ = create_marker_above_actor 2@ 0001: wait 100 ms0326: 8@ = create_actor 2@ fire 0001: wait 900 ms0164: disable_marker 7@0002: jump @BURN_78:BURN_780001: wait 50 ms0326: 9@ = create_actor $PLAYER_ACTOR fire 055D: make_player $PLAYER_ACTOR fireproof 1 004D: jump_if_false @BURN_520002: jump @BURN_7:BURN_70001: wait 0 ms 0326: 9@ = create_actor $PLAYER_ACTOR fire 055D: make_player $PLAYER_ACTOR fireproof 1 00D6: if 0AB0:   key_pressed 79 004D: jump_if_false @BURN_70002: jump @BURN_9:BURN_90001: wait 0 ms 00D6: if 0AB0:   key_pressed 70 004D: jump_if_false @BURN_9031A: remove_all_fires 0002: jump @BURN_10:BURN_100001: wait 0 ms 00D6: if 0AB0:   key_pressed 70 004D: jump_if_false @BURN_1000BC: show_text_highpriority GXT 'FIRE1' time 1000 flag 10001: wait 200 ms0002: jump @BURN_8

 

Link to comment
Share on other sites

I was working on it but my SA stopped working.

 

Here is my code(haven't tested it):

 

{$CLEO}03A4: name_thread "FLAME"while true   wait 0   if and   044B:   actor $PLAYER_ACTOR on_foot   0AB0:   key_pressed 70     then       03E5: show_text_box 'FLAME1'       055D: make_player 0 fireproof 1              0669: 0@ = attach_particle "fire" to_actor $PLAYER_ACTOR with_offset 0.0 0.0  0.0 flag 1        064C: make_particle_visible 0@               while 0AB0:   key_pressed 70           wait 0       end               while true           wait 0                                 if or           844B:   not actor $PLAYER_ACTOR on_foot             Actor.Dead($PLAYER_ACTOR)           0AB0:   key_pressed 70             then               0650: destroy_particle 0@                                          break           end // if           if and           0AB0:  pressed_key 1            0AD2: 5@ = player $PLAYER_CHAR targeted_actor //IF and SET           then               0669: 1@ = attach_particle "fire" to_actor 5@ with_offset 0.0 0.0  0.0 flag 1                064C: make_particle_visible 1@                0321: kill_actor 5@                       end // if       end             end // ifend

 

Edited by BnB
Link to comment
Share on other sites

{$CLEO .cs}thread "FLAME" :FLAME_9wait 0 if and044B:   actor $PLAYER_ACTOR on_foot 0AB0:   key_pressed 70 else_jump @FLAME_9 03E5: show_text_box 'FLAME1' 055D: make_player 0 fireproof 1 0669: 1@ = attach_particle "FIRE" to_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 flag 1 064C: make_particle 1@ visible :FLAME_86wait 0if0AB0:   key_pressed 70 else_jump @FLAME_108 jump @FLAME_86 :FLAME_108wait 0 if or844B:   not actor $PLAYER_ACTOR on_foot   Actor.Dead($PLAYER_ACTOR)0AB0:   key_pressed 70 else_jump @FLAME_149 0650: destroy_particle 1@ jump @FLAME_9 :FLAME_149if and00E1:   player 0 pressed_key 6 0AD2: 3@ = player $PLAYER_CHAR targeted_actor //IF and SET else_jump @FLAME_108 0669: 2@ = attach_particle "FIRE" to_actor 3@ with_offset 0.0 0.0 0.0 flag 1 064C: make_particle 2@ visible 0321: kill_actor 3@ 064F: remove_references_to_particle 2@ jump @FLAME_108

 

user posted image
Link to comment
Share on other sites

anyone know why my helicopter isnt moving? >.< it goes up like 10 cm or something

 

 

:CHEAT_2wait 50 ms0247: load_model #M40247: load_model #MINIGUN0247: load_model 4970247: load_model #SWAT0247: load_model #DESERT_EAGLE038B: load_requested_models wait 500 ms04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 1.0 3.0 0.2 01B2: give_actor $PLAYER_ACTOR weapon 38 ammo 9999 // Load the weapon model before using this wait 50 ms01B2: give_actor $PLAYER_ACTOR weapon 31 ammo 9999 // Load the weapon model before using this wait 50 ms01B2: give_actor $PLAYER_ACTOR weapon 24 ammo 9999 // Load the weapon model before using this wait 50 ms0992: set_player $PLAYER_ACTOR weapons_scrollable 1wait 50 ms04C4: store_coords_to 8@ 9@ 10@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 00BC: show_text_highpriority GXT 'CHEAT1' time 1000 flag 1018C: play_sound 1052 at 0.0 0.0 0.0 00A5: 0@ = create_car 497 1@ 2@ 3@  00A9: set_car 0@ to_normal_driver 00A7: car 0@ drive_to 8@ 9@ 10@ 0224: set_car 0@ health_to 900001EC: make_car 0@ very_heavy 10109: player $PLAYER_CHAR money += 1000000 0002: jump @CHEAT_78:CHEAT_7802AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 1 EP 1 CP 1 MP 1 0129: 4@ = create_actor_pedtype 4 model #SWAT in_car 0@ driverseat 07AF: $CHEAT = player $PLAYER_CHAR group 0630: put_actor $PLAYER_ACTOR in_group $CHEAT as_leader 0631: put_actor 4@ in_group $CHEAT02E2: set_actor 4@ weapon_accuracy_to 100 01B2: give_actor 4@ weapon 38 ammo 99999 // Load the weapon model before using this 07FE: set_actor 4@ fighting_style_to 7 6 00A9: set_car 0@ to_normal_driver 00BC: show_text_highpriority GXT 'CODE1' time 1000 flag 1wait 5000 ms016A: fade 0 time 500wait 500072B: put_actor $PLAYER_ACTOR into_car 0@ passengerseat -1 wait 500072A: put_actor 4@ into_car 0@ driverseatwait 500 ms016A: fade 1 time 500wait 500 mswait 50 ms02C2: car 0@ drive_to 2386.61 1940.84 10.795300AF: set_car 0@ driver_behaviour_to 5 wait 900 ms00BC: show_text_highpriority GXT 'CODE2' time 1000 flag 10249: release_model #M40249: release_model #MINIGUN0249: release_model 4970249: release_model #SWAT0249: release_model #DESERT_EAGLE004E: end_thread 

 

Edited by theblackduck
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.