CLEO Help Adding toggling

CLEO related
Status
Not open for further replies.

PimmelCrahserHD

New member
Joined
Feb 9, 2018
Messages
3
Reaction score
0
Hello,

i want to add a toggling function to that cleo, but im new to CLEO scripting. Can someone help me and edit this script?

Oh yea, and can someone also explain it to me how it works?

Code:
{$CLEO .cs}
0000:
while true
wait 0 
01B6: set_weather 10
end
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
With command:
[shcode=cpp]
{$CLEO .cs}
0000:

repeat
wait 0
until 0afa:

0B34: "active" @cmd

while true
wait 0
if 0@ == 1
then 01B6: set_weather 10
end
end

:cmd
0B12: 0@ = 0@ XOR 1
if 0@ == true
then printf "Enabled" 1337
else printf "Disabled" 1337
end
0B43: samp cmd_ret

[/shcode]

With key press:
[shcode=cpp]
{$CLEO .cs}
0000:

repeat
wait 0
until 0afa:

while true
wait 0

if 0ab0: 49 {1 Key}
then 0B12: 0@ = 0@ XOR 1
if 0@ == false
then printf "Enabled" 1337
else printf "Disabled" 1337
end
end

if 0@ == 1
then 01B6: set_weather 10
end

end


[/shcode]
 
Status
Not open for further replies.
Top