Help CLEO.

ZyZ.MaxiM

Active member
Joined
Nov 14, 2022
Messages
68
Solutions
2
Reaction score
3
Why the script is not working, it compiles the script without errors, but is not working.

{$CLEO}

wait 2500
0B34: samp register_client_command "Heal1" to_label @heal

:ZyZ_MAXIM
wait 0

//heall
if 6@ == true
then
say "hi"
wait 1111
end
//heall

jump @ZyZ_MAXIM


:heal
SAMP.IsCommandTyped(33@)
if
0AD4: 33@ = scan_string 33@ format "%s" 22@v
then
if 22@v == "on"
then
wait 1000
printf "~b~Auto ~r~/heal ~b~ -- Activated!" time 4000
6@ = true
else
if 22@v == "off"
then
printf "~b~Auto ~r~/heal ~b~ -- Deactivated!" time 4000
6@ = false
else
chatmsg "{6600cc}[heal]{A9C4E4}: <ON / OFF>" -1
end
end
else
chatmsg "{6600cc}[heal]{A9C4E4}: <ON / OFF>" -1
end
SAMP.CmdRet()
I made the script so when you type in chat /heall on, it should show info textdraw "Auto ~r~/heal ~b~ -- Activated!" and say in chat the command /heal automatically till i use the command "/heall off", not even "/heall off" works.
help!
 
Top