CLEO Help HELP

CLEO related
Status
Not open for further replies.

rasol

Well-known member
Joined
Aug 3, 2014
Messages
214
Reaction score
0
Code:
// This file was decompiled using SASCM.ini published by GTAG ([url]http://gtag.gtagaming.com/opcode-database[/url]) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'SPAWN' 

:SPAWN_11
wait 0 
if and
   not Actor.Driving($PLAYER_ACTOR)
0B34: samp register_client_command "/spawn" to_label [member=23507]Label[/member] 
jf @SPAWN_11 
SAMP.Spawn
print "~G~SPAWNED!" 1000 
018C: play_sound 1084 at 0.0 0.0 0.0 
wait 250 
goto @SPAWN_11
i get error called label label not found it's my first time where is the problem?
 

rasol

Well-known member
Joined
Aug 3, 2014
Messages
214
Reaction score
0
Thanks

What About this?
Code:
// This file was decompiled using SASCM.ini published by GTAG ([url]http://gtag.gtagaming.com/opcode-database[/url]) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'NOPS' 
print "CLEO MADE BY ~R~TH3RM4L" 10000 

:NOPS_41
wait 0 
if and
key_down 17 
key_down 53 
jf @NOPS_41 
print "NOPS ~G~ON" 1500 
SAMP.ReadSAMPMemory(1@, 77152, 2)
SAMP.WriteSAMPMemory(77152, 50064, 2)
SAMP.ReadSAMPMemory(2@, 81824, 2)
SAMP.WriteSAMPMemory(81824, 50064, 2)
SAMP.ReadSAMPMemory(3@, 492896, 2)
SAMP.WriteSAMPMemory(492896, 12715008, 2)
wait 500 
goto @NOPS_171 

:NOPS_171
wait 0 
if and
key_down 17 
key_down 53 
jf @NOPS_171 
print "NOPS ~R~OFF" 1500 
SAMP.WriteSAMPMemory(77152, 1@, 2)
SAMP.WriteSAMPMemory(81824, 2@, 2)
SAMP.WriteSAMPMemory(492896, 3@, 2)
wait 500 
goto @NOPS_41

i wanna to make it /mastercar
i try to replace key_down 17 and key_down 53 to
0B34: samp register_client_command "thecmd" to_label @NOPS_41

but i got error
 

rasol

Well-known member
Joined
Aug 3, 2014
Messages
214
Reaction score
0
Code:
// This file was decompiled using SASCM.ini published by GTAG ([url]http://gtag.gtagaming.com/opcode-database[/url]) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'SPAWN' 

:SPAWN_11
wait 0 
if and
   not Actor.Driving($PLAYER_ACTOR)
0B34: samp register_client_command "spawn" to_label @SPAWN_11 
else_jump @SPAWN_11 
SAMP.Spawn
print "~G~SPAWNED!" 1000 
018C: play_sound 1084 at 0.0 0.0 0.0 
wait 250 
jump @SPAWN_11

i compile it but when i get in game i get crashed
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
{$CLEO .cs}
0000: NOP

:START
wait 0
if
SAMP.Available()
jf @START
0B34: samp register_client_command "/spawn" to_label @SPAWN

:LOOP
wait 0
goto @LOOP

:SPAWN
if
Player.Defined($PLAYER_CHAR)
jf @CMDRET
if
not Actor.Driving($PLAYER_ACTOR)
gf @REMOVE_FROM_VEH
SAMP.Spawn
018C: play_sound 1084 at 0.0 0.0 0.0 
print "~G~SPAWNED!" 1000 
cmdret
goto @LOOP

:CMDRET
cmdret
goto @LOOP

:REMOVE_FROM_VEH
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 1@ 2@ 3@
wait 100
return

Code:
{$CLEO .cs}
0000: NOP

:START
wait 0
if
SAMP.Available()
jf @START
print "CLEO MADE BY ~R~TH3RM4L" 10000 
0B34: samp register_client_command "mastercar" to_label @ON
31@ = false

:LOOP
wait 0
goto @LOOP

:ON 
if
31@ == false
jf @OFF
31@ = true
SAMP.ReadSAMPMemory(1@, 77152, 2)
SAMP.WriteSAMPMemory(77152, 50064, 2)
SAMP.ReadSAMPMemory(2@, 81824, 2)
SAMP.WriteSAMPMemory(81824, 50064, 2)
SAMP.ReadSAMPMemory(3@, 492896, 2)
SAMP.WriteSAMPMemory(492896, 12715008, 2)
print "NOPS ~G~ACTIVATED" 1500 
cmdret
goto @LOOP 

:OFF
31@ = false
SAMP.WriteSAMPMemory(77152, 1@, 2)
SAMP.WriteSAMPMemory(81824, 2@, 2)
SAMP.WriteSAMPMemory(492896, 3@, 2)
print "NOPS ~R~DEACTIVATED" 1500 
cmdret
goto @LOOP
 

rasol

Well-known member
Joined
Aug 3, 2014
Messages
214
Reaction score
0
TH3RM4L link said:
Code:
{$CLEO .cs}
0000: NOP

:START
wait 0
if
SAMP.Available()
jf @START
0B34: samp register_client_command "/spawn" to_label @SPAWN

:LOOP
wait 0
goto @LOOP

:SPAWN
if
Player.Defined($PLAYER_CHAR)
jf @CMDRET
if
not Actor.Driving($PLAYER_ACTOR)
gf @REMOVE_FROM_VEH
SAMP.Spawn
018C: play_sound 1084 at 0.0 0.0 0.0 
print "~G~SPAWNED!" 1000 
cmdret
goto @LOOP

:CMDRET
cmdret
goto @LOOP

:REMOVE_FROM_VEH
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0362: remove_actor $PLAYER_ACTOR from_car_and_place_at 1@ 2@ 3@
wait 100
return

Code:
{$CLEO .cs}
0000: NOP

:START
wait 0
if
SAMP.Available()
jf @START
print "CLEO MADE BY ~R~TH3RM4L" 10000 
0B34: samp register_client_command "/mastercar" to_label @ON
31@ = false

:LOOP
wait 0
goto @LOOP

:ON 
if
31@ == false
jf @OFF
31@ = true
SAMP.ReadSAMPMemory(1@, 77152, 2)
SAMP.WriteSAMPMemory(77152, 50064, 2)
SAMP.ReadSAMPMemory(2@, 81824, 2)
SAMP.WriteSAMPMemory(81824, 50064, 2)
SAMP.ReadSAMPMemory(3@, 492896, 2)
SAMP.WriteSAMPMemory(492896, 12715008, 2)
print "NOPS ~G~ACTIVATED" 1500 
cmdret
goto @LOOP 

:OFF
31@ = false
SAMP.WriteSAMPMemory(77152, 1@, 2)
SAMP.WriteSAMPMemory(81824, 2@, 2)
SAMP.WriteSAMPMemory(492896, 3@, 2)
print "NOPS ~R~OFF" 1500 
cmdret
goto @LOOP

can you tell me what you change?
Code:
// This file was decompiled using SASCM.ini published by GTAG ([url]http://gtag.gtagaming.com/opcode-database[/url]) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 

:Noname_2
wait 0 
if 
0B34: samp register_client_command "nop" to_label @Noname_2 
jf @Noname_2 
print "NOPS ~r~ON" 1500 
SAMP.ReadSAMPMemory(1@, 81824, 2)
SAMP.WriteSAMPMemory(81824, 50064, 2)
goto @Noname_80 

:Noname_80
wait 0 
if 
0B34: samp register_client_command "nop" to_label @Noname_80 
jf @Noname_80 
print "NOPS ~g~OFF" 1500 
SAMP.WriteSAMPMemory(81824, 1@, 2)
wait 500 
goto @Noname_2

i did this and it get me crashed  :bawww:

Note from TH3RM4L: Stop double-posting. There's an edit button, use it! Also, put the scripts in CODE.

sorry i'm new so i did this and i get crash when i do /nop can you fix it for me thanks :X

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 

:Noname_2
wait 0 
if 
0B34: samp register_client_command "nop" to_label @Noname_2 
jf @Noname_2 
print "NOPS ~r~ON" 1500 
SAMP.ReadSAMPMemory(1@, 81824, 2)
SAMP.WriteSAMPMemory(81824, 50064, 2)
goto @Noname_80 

:Noname_80
wait 0 
if 
0B34: samp register_client_command "nop" to_label @Noname_80 
jf @Noname_80 
print "NOPS ~g~OFF" 1500 
SAMP.WriteSAMPMemory(81824, 1@, 2)
wait 500 
goto @Noname_2
 

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Code:
{$CLEO}

thread "ABC" 
wait 500
0B34: samp register_client_command "nopon" to_label @NOPON 
0B34: samp register_client_command "nopoff" to_label @NOPOFF

:LOOP
wait 0
goto @LOOP

:NOPON
wait 0
if
Player.Defined($PLAYER_ACTOR)
jf @CMDRET
SAMP.ReadSAMPMemory(1@, 81824, 2)
SAMP.WriteSAMPMemory(81824, 50064, 2)
print "]NOPS[ ~G~ON" 1500
cmdret
goto @LOOP

:NOPOFF
wait 0
if
Player.Defined($PLAYER_ACTOR)
jf @CMDRET
SAMP.WriteSAMPMemory(81824, 1@, 2)
print "]NOPS[ ~R~OFF" 1500
cmdret
goto @LOOP

:CMDRET
cmdret
goto @LOOP

[member=23965]rasol[/member]
 

rasol

Well-known member
Joined
Aug 3, 2014
Messages
214
Reaction score
0
Mr.Christmas link said:
Code:
{$CLEO}

thread "ABC" 
wait 500
0B34: samp register_client_command "nopon" to_label @NOPON 
0B34: samp register_client_command "nopoff" to_label @NOPOFF

:LOOP
wait 0
goto @LOOP

:NOPON
wait 0
if
Player.Defined($PLAYER_ACTOR)
jf @CMDRET
SAMP.ReadSAMPMemory(1@, 81824, 2)
SAMP.WriteSAMPMemory(81824, 50064, 2)
print "]NOPS[ ~G~ON" 1500
cmdret
goto @LOOP

:NOPOFF
wait 0
if
Player.Defined($PLAYER_ACTOR)
jf @CMDRET
SAMP.WriteSAMPMemory(81824, 1@, 2)
print "]NOPS[ ~R~OFF" 1500
cmdret
goto @LOOP

:CMDRET
cmdret
goto @LOOP

[member=23965]rasol[/member]
Bro it give error called " Unknown Directive thread "ABC" "
 
Status
Not open for further replies.
Top