Quantcast

Jump to content

» «
Photo

car spawner and skin changer problems

No replies to this topic
cj360
  • cj360

  • Members
  • Joined: 19 Sep 2007

#1

Posted 20 October 2008 - 08:36 PM Edited by cj360, 21 October 2008 - 07:42 PM.

I'm trying to make a car spawner in cleo like ititit where it spawns the car on the actor but the problem just won't be fixed the code:
CODE
{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'NONAME'
0001: wait 0 ms
0247: load_model #VORTEX
0247: load_model #MONSTER
038B: load_requested_models

:NONAME_70
00D6: if and
0248:   model #VORTEX available
0248:   model #MONSTER available
004D: jump_if_false @NONAME_70

:NONAME_129
0001: wait 0 ms
0A8D: 0@ = read_memory 9867536 size 4 virtual_protect 0
00D6: if
0AB0: 0@=key_pressed 0x37
004D: jump_if_false @NONAME_281
0006: 26@ = #MONSTER
0002: jump @NONAME_1816

:NONAME_281
0001: wait 0 ms
0A8D: 0@ = read_memory 9867536 size 4 virtual_protect 0
00D6: if
0AB0: 0@=key_pressed 0x36
004D: jump_if_false @NONAME_122
0006: 26@ = #VORTEX
0002: jump @NONAME_1816

:NONAME_122
0002: jump @NONAME_70

:NONAME_1760
03E5: show_text_box 'CHEAT1'  // Cheat activated
0A8C: 0@=write_memory 9867536 size 4 value 0 virtual_protect 0
0247: load_model 26@
038B: load_requested_models

:NONAME_1793
8248:   not model 26@ available
004D: jump_if_false @NONAME_1816
0001: wait 20 ms
0002: jump @NONAME_1793

:NONAME_1816
00A0: store_actor $PLAYER_ACTOR position_to 10@ 11@ 12@
00A5: 0@ = create_car 26@ at 10@ 11@ 12@
0172: 4@ = actor $PLAYER_ACTOR Z_angle
0175: set_car 0@ Z_angle_to 4@
036A: put_actor $PLAYER_ACTOR in_car 0@
0249: release_model 26@
0002: jump @NONAME_70


And I'm trying to make a skin changer like james277uk's but it don't make cj immortal after the skin change like I want it to.
CODE
//-------------MAIN---------------
03A4: name_thread 'HALO_THREAD'

:HALO_THREAD_19
0001: wait 0 ms
0A8D: 0@ = read_memory 9867536 size 4 virtual_protect 0
00D6: if
04A4:   0@ == 1212238927 // @ == any
004D: jump_if_false @HALO_THREAD_19
023C: load_special_actor 'HALO' as 1 // models 290-299
038B: load_requested_models

:HALO_THREAD_73
0001: wait 0 ms
00D6: if
023D:   special_actor 1 loaded
004D: jump_if_false @HALO_THREAD_73
03E5: show_text_box 'CHEAT1'  // Cheat activated
01B4: set_player $PLAYER_CHAR can_move 0
09C7: change_player $PLAYER_CHAR model_to #SPECIAL01
070D: rebuild_player $PLAYER_CHAR
02AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 1 EP 1 CP 1 MP 1
0223: set_actor $PLAYER_ACTOR health_to 250
035F: actor $PLAYER_ACTOR armour += 250
04D8: set_actor $PLAYER_ACTOR drowns_in_water 0
0330: set_player $PLAYER_CHAR infinite_run 1
0489: set_actor $PLAYER_ACTOR muted 1
01B4: set_player $PLAYER_CHAR can_move 1
05BC: AS_actor $PLAYER_ACTOR jump 1
0296: unload_special_actor 1
0A8C: write_memory 9867536 size 4 value 0 virtual_protect 0
0002: jump @HALO_THREAD_213

:HALO_THREAD_213
0001: wait 0 ms
0A8D: 0@ = read_memory 9867536 size 4 virtual_protect 0
00D6: if
04A4:   0@ == 1212238927 // @ == any
004D: jump_if_false @HALO_THREAD_213
0247: load_model #NULL
038B: load_requested_models

:HALO_THREAD_258
0001: wait 0 ms
00D6: if
0248:   model #NULL available
004D: jump_if_false @HALO_THREAD_258
03E5: show_text_box 'CHEAT8'  // Cheat deactivated
01B4: set_player $PLAYER_CHAR can_move 1
09C7: change_player $PLAYER_CHAR model_to #NULL
070D: rebuild_player $PLAYER_CHAR
02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 0
04D8: set_actor $PLAYER_ACTOR drowns_in_water 1
0330: set_player $PLAYER_CHAR infinite_run 0
0489: set_actor $PLAYER_ACTOR muted 0
01B4: set_player $PLAYER_CHAR can_move 1
05BC: AS_actor $PLAYER_ACTOR jump 1
0249: release_model #NULL
0A8C: write_memory 9867536 size 4 value 0 virtual_protect 0
0001: wait 800 ms
0002: jump @HALO_THREAD_19
I'm not trying to steal that's why I posted this and to get much needed help. Unless no one wants to help me....... cryani.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users