Derrekgamer
Active member
Hello im trying to make a cleo cmd so that can type in chat every 1 h /wt looking for new members for my clan.. i did it and works perfectly but i cant add the script that enable / disable it. for example : /activate = activate the mod /activate = dezactivate the mod. i tryed this script but when i logging to the server the mod starts by it self and the command has no effect.. Can you help me how to to that so the mod wont work untill i type the command /activate?
My mod :
{$CLEO .cs}
0000: NOP
repeat
wait 50
until 0AFA: is_samp_structures_available
0B34: samp register_client_command "activate" to_label @active
:unknown_6969
WHILE TRUE
WAIT 0
IF 31@ == 1
wait 30000
goto @req
wait 5000
:req
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
goto @req
:active
0B12: 31@ = 31@ XOR 1
If 31@ == 1
then
0AF8: samp add_message_to_chat "{009900}on" -1
else
0AF8: samp add_message_to_chat "{FF0000}off" -1
end
samp.CmdRet
My mod :
{$CLEO .cs}
0000: NOP
repeat
wait 50
until 0AFA: is_samp_structures_available
0B34: samp register_client_command "activate" to_label @active
:unknown_6969
WHILE TRUE
WAIT 0
IF 31@ == 1
wait 30000
goto @req
wait 5000
:req
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
IF 04A4: 15@ == 2
0AF9: samp say_msg "test"
wait 5000
goto @req
:active
0B12: 31@ = 31@ XOR 1
If 31@ == 1
then
0AF8: samp add_message_to_chat "{009900}on" -1
else
0AF8: samp add_message_to_chat "{FF0000}off" -1
end
samp.CmdRet