CLEO Help Help me fix my cleo

CLEO related
Status
Not open for further replies.

Husnain

Well-known member
Joined
May 20, 2016
Messages
228
Reaction score
9
Location
Mars
PHP:
0B34: samp register_client_command "mycmd" to_label @cmd_mycmd

Don't use 0AF9 opcode. It just automatically type the command in the chat. Use 0AF9 opcode to register the command 
"mycmd" is the command. You can change it whatever you like and "@cmd_mycmd" is the label where the mod/process will be implement (start).
 

wisraul

Member
Joined
May 21, 2017
Messages
15
Reaction score
0
Code:
//-------------MAIN---------------
0000: NOP 
0B34:samp register_client_command "backup" to_label @NONAME_2
0@ = 0
:NONAME_1
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0843: get_name_of_zone 1@ 2@ 3@ store_to 4@
:NONAME_2
wait 0 
if 
0@=1
then
wait 10000
0AF9: samp say_msg "/pr i need help at 4@"
jump @NONAME_2


Husnain said:
PHP:
0B34: samp register_client_command "mycmd" to_label @cmd_mycmd

Don't use 0AF9 opcode. It just automatically type the command in the chat. Use 0AF9 opcode to register the command 
"mycmd" is the command. You can change it whatever you like and "@cmd_mycmd" is the label where the mod/process will be implement (start).

I've edited , Help me finish it
 

bladero

Active member
Joined
Jan 3, 2017
Messages
73
Reaction score
0
Change 4@ to string variable, use 0C8F: samp process_chat_input "   " instead of say_msg, add cmdret on end of the :NONAME_2 and create loop instead of useing 0@ = 0 nad 0@ = 1
 

wisraul

Member
Joined
May 21, 2017
Messages
15
Reaction score
0
bladero said:
Change 4@ to string variable, use 0C8F: samp process_chat_input "   " instead of say_msg, add cmdret on end of the :NONAME_2 and create loop instead of useing 0@ = 0 nad 0@ = 1

i dont understand, edit for me, help
 

bladero

Active member
Joined
Jan 3, 2017
Messages
73
Reaction score
0

Code:
{$CLEO .cs}
0000:
wait 0

repeat
wait 0
until 0AFA:  is_samp_available

0B34: samp register_client_command "backup" to_label @backup

while true
wait 0
end

:backup
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0843: get_zone_at 1@ 2@ 3@ nameA_to s$8216
0C8F: samp process_chat_input "/pr i need help at %s" s$8216
0B43: samp cmd_ret


try now
 

wisraul

Member
Joined
May 21, 2017
Messages
15
Reaction score
0
bladero said:

Code:
{$CLEO .cs}
0000:
wait 0

repeat
wait 0
until 0AFA:  is_samp_available

0B34: samp register_client_command "backup" to_label @backup

while true
wait 0
end

:backup
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
0843: get_zone_at 1@ 2@ 3@ nameA_to s$8216
0C8F: samp process_chat_input "/pr i need help at %s" s$8216
0B43: samp cmd_ret


try now
It not working, until /backup, it no  work
 

Husnain

Well-known member
Joined
May 20, 2016
Messages
228
Reaction score
9
Location
Mars
I can make this cleo but totally in alternate way. I'll not make it because that way will take too much time!
 
Status
Not open for further replies.
Top