CLEO Help Help with script

CLEO related

kurac12333

Member
Joined
Aug 22, 2020
Messages
5
Reaction score
0
Location
ne znam
{$CLEO .cs}

0000:

thread 'LottoSkripta'

repeat
wait 0
until 0AFA:


while true
wait 0

if and
0256: player $PLAYER_CHAR defined
80DF: actor $PLAYER_ACTOR driving
then
if 00EC: actor $PLAYER_ACTOR sphere 0 near_point 1220.1060 -1422.9386 radius 1.2 1.2
then
say "/lotto 15"
end
end

end


I made this script and when i came to coordinates I put server kick me because spam. So, can anyone write code that made this script to type once-twice command when i came to coordinates. I tryed something already but It makes crash.
 

JaggerJam

Active member
Joined
Sep 14, 2017
Messages
98
Solutions
1
Reaction score
21
After say "lotto 15", put this:
Code:
repeat
wait 0
until 80EC: actor $PLAYER_ACTOR sphere 0 near_point 1220.1060 -1422.9386 radius 1.2 1.2
 
Top