CLEO Help On / Off cleo script.

CLEO related
Status
Not open for further replies.

Mox

Member
Joined
Mar 1, 2016
Messages
8
Reaction score
0
Hello  :ugbase: !
[size=xx-large]I make this script:[/size]

Code:
while true
wait 0
10@ = Actor.Health($PLAYER_ACTOR)
if 
10@ <= 20
then
0AF9:   samp say_msg "Hello"
wait 1000
end
end
[font=arial, sans-serif][size=small]I want to make it turn on and off when I use a [/hello] command. Can you help me please?[/font][/size]
[font=arial, sans-serif][size=small]Thank you ![/font][/size]
[font=arial, sans-serif][size=small]:sadpepe: [/font][/size]
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Mox said:
Hello  :ugbase: !
[size=xx-large]I make this script:[/size]

Code:
while true
wait 0
10@ = Actor.Health($PLAYER_ACTOR)
if 
10@ <= 20
then
0AF9:   samp say_msg "Hello"
wait 1000
end
end

{$CLEO}
0000:

repeat
wait 0 
until Samp.Available

0B34: "hello" @Cmd

while true
wait 0

if 0@ == true 
then
[font=Monaco, Consolas, Courier, monospace]1@ = Actor.Health($PLAYER_ACTOR)[/font]
[font=Monaco, Consolas, Courier, monospace]if [/font]
[font=Monaco, Consolas, Courier, monospace]1@ <= 20[/font]
[font=Monaco, Consolas, Courier, monospace]then[/font]
[font=Monaco, Consolas, Courier, monospace]0AF9:   samp say_msg "Hello"[/font]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace]wait 1000[/font][/font][/size]
[font=Monaco, Consolas, Courier, monospace]end[/font]
end

END

:Cmd
wait 0
0B12: 0@ = 0@ XOR 1
if 0@ == TRUE
then
printf "~Y~Mod~G~ [ON]" 1300
else
printf "~Y~Mod~R~ [OFF]" 1300
end
cmdret
 

Mox

Member
Joined
Mar 1, 2016
Messages
8
Reaction score
0
_=Gigant=_ said:
Mox said:
Hello  :ugbase: !
[size=xx-large]I make this script:[/size]

Code:
while true
wait 0
10@ = Actor.Health($PLAYER_ACTOR)
if 
10@ <= 20
then
0AF9:   samp say_msg "Hello"
wait 1000
end
end

{$CLEO}
0000:

repeat
wait 0 
until Samp.Available

0B34: "hello" @Cmd

while true
wait 0

if 0@ == true 
then
[font=Monaco, Consolas, Courier, monospace]1@ = Actor.Health($PLAYER_ACTOR)[/font]
[font=Monaco, Consolas, Courier, monospace]if [/font]
[font=Monaco, Consolas, Courier, monospace]1@ <= 20[/font]
[font=Monaco, Consolas, Courier, monospace]then[/font]
[font=Monaco, Consolas, Courier, monospace]0AF9:   samp say_msg "Hello"[/font]
[font=Monaco, Consolas, Courier, monospace][size=small][font=Monaco, Consolas, Courier, monospace]wait 1000[/font][/font][/size]
[font=Monaco, Consolas, Courier, monospace]end[/font]
end

END

:Cmd
wait 0
0B12: 0@ = 0@ XOR 1
if 0@ == TRUE
then
printf "~Y~Mod~G~ [ON]" 1300
else
printf "~Y~Mod~R~ [OFF]" 1300
end
cmdret

So fast, thank you man :D :fuck_yea:
 
Status
Not open for further replies.
Top