Quantcast

Jump to content

» «
Photo

Whats the problem for this cleo script?

1 reply to this topic
erxul_fachri
  • erxul_fachri

    Player Hater

  • Members
  • Joined: 06 Jan 2013
  • None

#1

Posted 29 January 2014 - 11:37 PM

Im making CScript for sa. because im using this script the gta sa is crash..

What the problem for this script?
this script name is TP (three player)
pliz help me...

// This file was decompiled using SASCM.INI published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'TP' 

:TP_11
0001: wait 0 ms 
00D6: if 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @TP_11 
0247: load_model #RYDER 
0247: load_model #SWEET 
00D6: if 
0248:   model #RYDER available 
0248:   model #SWEET available 
004D: jump_if_false @TP_11 
009A: 0@ = create_actor_pedtype 8 model #NULL at 0 0 0 
009A: 1@ = create_actor_pedtype 8 model #RYDER at 2518.697 -1678.673 25.6638 
009A: 2@ = create_actor_pedtype 8 model #SWEET at 1793.313 -2141.542 25.6069 
0249: release_model #RYDER 
0249: release_model #SWEET 

:TP_129
0001: wait 0 ms 
00D6: if 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @TP_11 
0001: wait 0 ms 
00D6: if and
0AB0:   key_pressed 8 
0AB0:   key_pressed 81 
004D: jump_if_false @TP_186 
05AA: 3@ = 1 
0002: jump @TP_292 

:TP_186
0001: wait 0 ms 
00D6: if 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @TP_11 
00D6: if and
0AB0:   key_pressed 8 
0AB0:   key_pressed 87 
004D: jump_if_false @TP_239 
05AA: 3@ = 0 
0002: jump @TP_356 

:TP_239
0001: wait 0 ms 
00D6: if 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @TP_11 
00D6: if and
0AB0:   key_pressed 8 
0AB0:   key_pressed 69 
004D: jump_if_false @TP_129 
05AA: 3@ = 2 
0002: jump @TP_420 

:TP_292
0001: wait 0 ms 
00D6: if 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @TP_292 
00D6: if 
05AE:   3@ == 1 
004D: jump_if_false @TP_356 
05AA: 6@ = 1@ 
0247: load_model #RYDER 
05AA: 5@ = 105 
0002: jump @TP_495 

:TP_356
0001: wait 0 ms 
00D6: if 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @TP_356 
00D6: if 
05AE:   3@ == 0 
004D: jump_if_false @TP_420 
05AA: 6@ = 0@ 
0247: load_model #NULL 
05AA: 5@ = 0 
0002: jump @TP_495 

:TP_420
0001: wait 0 ms 
00D6: if 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @TP_420 
00D6: if 
05AE:   3@ == 2 
004D: jump_if_false @TP_484 
05AA: 6@ = 2@ 
0247: load_model #SWEET 
05AA: 5@ = 106 
0002: jump @TP_495 

:TP_484
0001: wait 0 ms 
0002: jump @TP_129 

:TP_495
0001: wait 0 ms 
00D6: if 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @TP_495 
0581: enable_radar 0 
0826: enable_hud 0 
04C4: store_coords_to $X_1 $Y_1 $Z_1 from_actor $PLAYER_ACTOR with_offset 0.0 0.0 -1.0 
04C4: store_coords_to $X_2 $Y_2 $Z_2 from_actor 6@ with_offset 0.0 0.0 -1.0 
00A1: put_actor $PLAYER_ACTOR at $X_2 $Y_2 $Z_2 
00A1: put_actor 6@ at $X_1 $Y_1 $Z_1 
09C7: change_player $PLAYER_CHAR model_to 5@ 
0249: release_model 5@ 
0001: wait 1000 ms 
0002: jump @TP_129 

Sorry for wrong english... :)


343 guilty spark
  • 343 guilty spark

    Player Hater

  • Members
  • Joined: 26 Nov 2013

#2

Posted 15 February 2014 - 11:40 PM Edited by 343 guilty spark, 15 February 2014 - 11:45 PM.

// This file was decompiled using SASCM.INI published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$CLEO .cs}

//-------------MAIN---------------
03A4: name_thread 'TP' 

:TP_11
0001: wait 0 ms 
00D6: if 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @TP_11 
023C: load_special_actor 'RYDER' as 1 // models 290-299
023C: load_special_actor 'SWEET' as 2 // models 290-299
//0247: load_model #RYDER 
//0247: load_model #SWEET
:TP_222222
wait 0 
00D6: if and // and missing!
0248:   model #RYDER available 
0248:   model #SWEET available 
//004D: jump_if_false @TP_11 // this way it will laod again!
else_jump @TP_222222
//009A: 0@ = create_actor_pedtype 8 model #NULL at 0 0 0 // i dont think there is a model null...
009A: 1@ = create_actor_pedtype 8 model #SPECIAL01 at 2518.697 -1678.673 25.6638 
009A: 2@ = create_actor_pedtype 8 model #SPECIAL02 at 1793.313 -2141.542 25.6069 
//0249: release_model #RYDER 
//0249: release_model #SWEET 
0296: unload_special_actor 1
0296: unload_special_actor 2
                             to be cont...

erxul_fachri: thank you, i will try it now.

343 Guilty Spark: if you are going to try it then try it, but dont tell me! i dont need a status report!

 

Ryder and Sweet are special actors: (they are sissies)

dont load the model yourself! use opcodes and sh*t





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users