CLEO Help [CLEO HELP] Question

CLEO related
Status
Not open for further replies.

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Hi.
Possible create cleo?
If car very fast stop the samp send_msg "Go awai!"

If it is possible , can explane how?

Something like that.:
https://www.youtube.com/watch?v=MBpz-ePnJi0&feature=youtu.be​
 

Polaroid

Active member
Joined
Oct 30, 2014
Messages
39
Reaction score
0
Parazitas said:
Hi.
Possible create cleo?
If car very fast stop the samp send_msg "Go awai!"

If it is possible , can explane how?

Something like that.:
https://www.youtube.com/watch?v=MBpz-ePnJi0&feature=youtu.be​

Howdy.
bro
Try using
04BA: set_car 34@ speed_to 0.0
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Polaroid said:
Parazitas said:
Hi.
Possible create cleo?
If car very fast stop the samp send_msg "Go awai!"

If it is possible , can explane how?

Something like that.:
https://www.youtube.com/watch?v=MBpz-ePnJi0&feature=youtu.be​

Howdy.
bro
Try using
04BA: set_car 34@ speed_to 0.0

This only set car speed to 0
 

Polaroid

Active member
Joined
Oct 30, 2014
Messages
39
Reaction score
0
Parazitas said:
Polaroid said:
Parazitas said:
Hi.
Possible create cleo?
If car very fast stop the samp send_msg "Go awai!"

If it is possible , can explane how?

Something like that.:
https://www.youtube.com/watch?v=MBpz-ePnJi0&feature=youtu.be​

Howdy.
bro
Try using
04BA: set_car 34@ speed_to 0.0

This only set car speed to 0

say "Go awai!" - this will send the message
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Polaroid said:
Parazitas said:
Polaroid said:
Parazitas said:
Hi.
Possible create cleo?
If car very fast stop the samp send_msg "Go awai!"

If it is possible , can explane how?

Something like that.:
https://www.youtube.com/watch?v=MBpz-ePnJi0&feature=youtu.be​

Howdy.
bro
Try using
04BA: set_car 34@ speed_to 0.0

This only set car speed to 0

say "Go awai!" - this will send the message

1. But him don't check car speed........

2. I doing something wrong beacose code don't check car speed if are 0 and flood "lol".

Can help?
@springfield
@supahdupahnubah

Look here:


Code:
{$CLEO .cs}
0B34: "FakeSay" @FakeSayLoop
thread "FakeSay"
0000: NOP

9@ = 0

:FakeSay
wait 0
if 9@ == 1
then
   Actor.Driving($PLAYER_ACTOR)
else_jump @FakeSay 
$Car_Speed = Actor.CurrentCar($PLAYER_ACTOR)
02E3: $Car_Speed = car $Car_Speed speed 
if 
  $Car_Speed > 0.0
then
wait 1000
0AF9: samp say_msg "lol"
end
end
jump @FakeSay

////
:FakeSayLoop
if 9@ == 0
then 
    wait 1000
    printf "~b~FakeSay: ~r~ON~b~!" time 1500
    wait 1750
    9@ = 1
else
    wait 1000
    printf "~b~FakeSay: ~r~OFF~b~!" time 1500
    wait 1750
    9@ = 0
end                   
SAMP.CmdRet
 

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
[shcode=cpp]
{$CLEO .cs}
0B34: "FakeSay" @FakeSayLoop
thread "FakeSay"
0000: NOP

9@ = 0

:FakeSay
wait 0
if 9@ == 1
then
  Actor.Driving($PLAYER_ACTOR)
else_jump @FakeSay
03C0: 0@ = actor $PLAYER_ACTOR car
02E3: 1@ = vehicle 0@ speed
if
1@ > 1.0
then
wait 1000
0AF9: samp say_msg "UGBASE.EU"
end
end
jump @FakeSay

:FakeSayLoop
if 9@ == 0
then
   wait 1000
   printf "~b~FakeSay: ~r~ON~b~! ~P~(Mr.Christmas was here!)" time 1500
   wait 1750
   9@ = 1
else
   wait 1000
   printf "~b~FakeSay: ~r~OFF~b~!" time 1500
   wait 1750
   9@ = 0
end                  
SAMP.CmdRet
[/shcode]

@Parazitas
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Mr.Christmas said:
[shcode=cpp]
{$CLEO .cs}
0B34: "FakeSay" @FakeSayLoop
thread "FakeSay"
0000: NOP

9@ = 0

:FakeSay
wait 0
if 9@ == 1
then
  Actor.Driving($PLAYER_ACTOR)
else_jump @FakeSay
03C0: 0@ = actor $PLAYER_ACTOR car
02E3: 1@ = vehicle 0@ speed
if
1@ > 1.0
then
wait 1000
0AF9: samp say_msg "UGBASE.EU"
end
end
jump @FakeSay

:FakeSayLoop
if 9@ == 0
then
   wait 1000
   printf "~b~FakeSay: ~r~ON~b~! ~P~(Mr.Christmas was here!)" time 1500
   wait 1750
   9@ = 1
else
   wait 1000
   printf "~b~FakeSay: ~r~OFF~b~!" time 1500
   wait 1750
   9@ = 0
end                  
SAMP.CmdRet
[/shcode]

@Parazitas

@Mr.Christmas

Thanks for this but.:

This script send TEXT when speed is a larger for 1.0 and flood..

But me need TEXT send when speed only is 0.0 and not larger . http://ugbase.eu/User-Mr-Christmas
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
supahdupahnubah said:
Parazitas said:
This script send TEXT when speed is a larger for 1.0 and flood..

But me need TEXT send when speed only is 0.0 and not larger . http://ugbase.eu/User-Mr-Christmas

Now I'm pretty sure you were just a freebie, if you were actually learning cleo, these simple excuses would be easy for you

Not realy, i not always understand cleo codes.

Mr.Christmas said:
Then adjust the 1@


Here I am done, thanks for help.
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Hi.
Now i trying add auto deactive 60 seconds , but something wrong, maybe know where's the problem?
@Mr.Christmas
@supahdupahnubah​

Code:
{$CLEO .cs}
/* Activate command */
0B34: "FakeSay" @FakeSayLoop
/* Cleo create explane */
thread "FakeSay"
thread "Used when"
thread "Is activated"
thread "Vehicle recording."
thread "When admin freeze"
thread "You, car speed is 0"
thread "Then cleo send text"
0000: NOP
 
9@ = 0
///// 

:FakeOFF_1min
wait 60000
else_jump @FakeSay
jump @FakeOFF_1min
 
//// 
:FakeSay
wait 0
if 9@ == 1
then
  Actor.Driving($PLAYER_ACTOR)
else_jump @FakeSay 
03C0: 0@ = actor $PLAYER_ACTOR car
02E3: 1@ = vehicle 0@ speed
if
1@ <= 0.0
then
wait 2000
0AF9: samp say_msg "UGBASE.EU"
else_jump @FakeOFF_1min
end
end
jump @FakeSay
 
:FakeSayLoop
if 9@ == 0
then 
   wait 1000
   printf "~b~FakeSay: ~r~ON~b~!" time 1500
   wait 1750
   9@ = 1
else
   wait 1000
   printf "~b~FakeSay: ~r~OFF~b~!" time 1500
   wait 1750
   9@ = 0
end                   
SAMP.CmdRet
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
Parazitas said:
Hi.
Now i trying add auto deactive 60 seconds , but something wrong, maybe know where's the problem?
@Mr.Christmas
@supahdupahnubah​

Code:
{$CLEO .cs}
/* Activate command */
0B34: "FakeSay" @FakeSayLoop
/* Cleo create explane */
thread "FakeSay"
thread "Used when"
thread "Is activated"
thread "Vehicle recording."
thread "When admin freeze"
thread "You, car speed is 0"
thread "Then cleo send text"
0000: NOP
 
9@ = 0
///// 

:FakeOFF_1min
wait 60000
else_jump @FakeSay
jump @FakeOFF_1min
 
//// 
:FakeSay
wait 0
if 9@ == 1
then
  Actor.Driving($PLAYER_ACTOR)
else_jump @FakeSay 
03C0: 0@ = actor $PLAYER_ACTOR car
02E3: 1@ = vehicle 0@ speed
if
1@ <= 0.0
then
wait 2000
0AF9: samp say_msg "UGBASE.EU"
else_jump @FakeOFF_1min
end
end
jump @FakeSay
 
:FakeSayLoop
if 9@ == 0
then 
   wait 1000
   printf "~b~FakeSay: ~r~ON~b~!" time 1500
   wait 1750
   9@ = 1
else
   wait 1000
   printf "~b~FakeSay: ~r~OFF~b~!" time 1500
   wait 1750
   9@ = 0
end                   
SAMP.CmdRet

Wrong jump labels, why would you use low level syntax over the high one?
 
Status
Not open for further replies.
Top