CLEO Help Cleo script

CLEO related
Status
Not open for further replies.

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
301
Reaction score
36
Location
Srbija
Hi, what is wrong with this why cp dont dissapear

Code:
WHILE TRUE //radi nesto
WAIT 0 //freeze         

if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2503.2087 1213.0519 37.4283 radius 6.0 6.0 20.0//Granica SA-BG
then 06D6: disable_racing_checkpoint 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2522.1843 2452.2454 17.9336 radius 6.0 6.0 20.0
then 06D6: disable_racing_checkpoint 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2452.2373 2237.1628 4.8438 radius 6.0 6.0 20.0
then 06D6: disable_racing_checkpoint 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2503.2087 1213.0519 37.4283 radius 6.0 6.0 20.0
then 06D6: disable_racing_checkpoint 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2613.7712 2256.8596 8.2025 radius 6.0 6.0 20.0
then 06D6: disable_racing_checkpoint 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2492.1201 2212.6528 4.9844 radius 6.0 6.0 20.0
then 06D6: disable_racing_checkpoint 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2529.0417 2290.6257 4.9844 radius 6.0 6.0 20.0
then 06D6: disable_racing_checkpoint 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2529.1702 2362.2112 4.9859 radius 6.0 6.0 20.0
then 06D6: disable_racing_checkpoint 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2294.0710 2252.3599 4.9844 radius 6.0 6.0 20.0
then 06D6: disable_racing_checkpoint 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2263.6338 2304.9353 4.8202 radius 6.0 6.0 20.0
then 06D6: disable_racing_checkpoint 5@
end

END
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
If you use racing checkpoint , need use racing check point disable opcode... , but if you use marker opcode you need disable marker...
 

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
301
Reaction score
36
Location
Srbija
The whole script
Code:
{$CLEO .cs}
//----------------//Script by Fr0z3n//---------------------

Thread ".CS TEAM"

0000: NOP// Start cleo

repeat
     wait 0 //zbog freeza
until 0AFA:// kraca verzija samp.Available().....

const//const cmd
SCREEN_SHOT_KEY = 119 // screen zastita
end//kraj

0B34: samp register_client_command "bayside" to_label @bayside

WHILE TRUE //radi nesto
WAIT 0 //freeze         

if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2503.2087 1213.0519 37.4283 radius 6.0 6.0 20.0//Granica SA-BG
then 0164: disable_marker $MARKER 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2522.1843 2452.2454 17.9336 radius 6.0 6.0 20.0
then 0164: disable_marker $MARKER 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2452.2373 2237.1628 4.8438 radius 6.0 6.0 20.0
then 0164: disable_marker $MARKER 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2503.2087 1213.0519 37.4283 radius 6.0 6.0 20.0
then 0164: disable_marker $MARKER 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2613.7712 2256.8596 8.2025 radius 6.0 6.0 20.0
then 0164: disable_marker $MARKER 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2492.1201 2212.6528 4.9844 radius 6.0 6.0 20.0
then 0164: disable_marker $MARKER 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2529.0417 2290.6257 4.9844 radius 6.0 6.0 20.0
then 0164: disable_marker $MARKER 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2529.1702 2362.2112 4.9859 radius 6.0 6.0 20.0
then 0164: disable_marker $MARKER 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2294.0710 2252.3599 4.9844 radius 6.0 6.0 20.0
then 0164: disable_marker $MARKER 5@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2263.6338 2304.9353 4.8202 radius 6.0 6.0 20.0
then 0164: disable_marker $MARKER 5@
end

END //kraj za while true


:bayside
wait 0//Zbog freeze
chatmsg "{F42B00}[.CS TEAM] {FFC14C} Algoritam za Bayside je aktiviran!!" //poruka kada ukucam cmd
SAMP.IsCommandTyped(0@)
02A7: $MARKER = create_icon_marker_and_sphere 19 at -2503.2087 1213.0519 37.4283
02A7: $MARKER = create_icon_marker_and_sphere 19 at -2522.1843 2452.2454 17.9336
02A7: $MARKER = create_icon_marker_and_sphere 19 at -2452.2373 2237.1628 4.8438
02A7: $MARKER = create_icon_marker_and_sphere 19 at -2229.0303 2326.8035 7.5469
02A7: $MARKER = create_icon_marker_and_sphere 19 at -2613.7712 2256.8596 8.2025
02A7: $MARKER = create_icon_marker_and_sphere 19 at -2492.1201 2212.6528 4.9844
02A7: $MARKER = create_icon_marker_and_sphere 19 at -2529.0417 2290.6257 4.9844
02A7: $MARKER = create_icon_marker_and_sphere 19 at -2529.1702 2362.2112 4.9859
02A7: $MARKER = create_icon_marker_and_sphere 19 at -2294.0710 2252.3599 4.9844
02A7: $MARKER = create_icon_marker_and_sphere 19 at -2263.6338 2304.9353 4.8202
SAMP.CmdRet()
 

_Safa

Well-known member
Joined
Sep 22, 2019
Messages
297
Reaction score
103
Location
UGBASE
God damn dude please... you are just deleting checkpoint handle 5@ which isn't even declared somewhere. That's like trying to sell a car that doesn't even exist.

Honestly stop copy-pasting, you are just doing stuff which you have no clue off. You will only face problems which can be easily solved if you had clue about it.

And what the hell is this :
disable_marker $MARKER 5@

You are trying to delete $MARKER and 5@ (which is not even defined somewhere), that doesn't make sense.


Learn the basics of CLEO (honestly its pretty simple to learn) and then come back to this until you understand what you are actually doing.
 

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
301
Reaction score
36
Location
Srbija
God damn dude please... you are just deleting checkpoint handle 5@ which isn't even declared somewhere. That's like trying to sell a car that doesn't even exist.

Honestly stop copy-pasting, you are just doing stuff which you have no clue off. You will only face problems which can be easily solved if you had clue about it.

And what the hell is this :
disable_marker $MARKER 5@

You are trying to delete $MARKER and 5@ (which is not even defined somewhere), that doesn't make sense.


Learn the basics of CLEO (honestly its pretty simple to learn) and then come back to this until you understand what you are actually doing.

I change it and paste first script its all mine
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
You doing shit..
PHP:
{$CLEO .cs}
//----------------//Script by Fr0z3n//---------------------

Thread ".CS TEAM"

0000: NOP// Start cleo

repeat
     wait 0 //zbog freeza
until 0AFA:// kraca verzija samp.Available().....

const//const cmd
SCREEN_SHOT_KEY = 119 // screen zastita
end//kraj

0B34: samp register_client_command "bayside" to_label @bayside

WHILE TRUE //radi nesto
WAIT 0 //freeze         

if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2503.2087 1213.0519 37.4283 radius 6.0 6.0 20.0//Granica SA-BG
then 0164: disable_marker 0@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2522.1843 2452.2454 17.9336 radius 6.0 6.0 20.0
then 0164: disable_marker 1@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2452.2373 2237.1628 4.8438 radius 6.0 6.0 20.0
then 0164: disable_marker 2@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2503.2087 1213.0519 37.4283 radius 6.0 6.0 20.0
then 0164: disable_marker 3@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2613.7712 2256.8596 8.2025 radius 6.0 6.0 20.0
then 0164: disable_marker 4@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2492.1201 2212.6528 4.9844 radius 6.0 6.0 20.0
then 0164: disable_marker 6@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2529.0417 2290.6257 4.9844 radius 6.0 6.0 20.0
then 0164: disable_marker 7@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2529.1702 2362.2112 4.9859 radius 6.0 6.0 20.0
then 0164: disable_marker 8@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2294.0710 2252.3599 4.9844 radius 6.0 6.0 20.0
then 0164: disable_marker 9@
end
if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2263.6338 2304.9353 4.8202 radius 6.0 6.0 20.0
then 0164: disable_marker 10@
end

END //kraj za while true


:bayside
wait 0//Zbog freeze
chatmsg "{F42B00}[.CS TEAM] {FFC14C} Algoritam za Bayside je aktiviran!!" //poruka kada ukucam cmd
02A7: 0@ = create_icon_marker_and_sphere 19 at -2503.2087 1213.0519 37.4283
02A7: 1@ = create_icon_marker_and_sphere 19 at -2522.1843 2452.2454 17.9336
02A7: 2@ = create_icon_marker_and_sphere 19 at -2452.2373 2237.1628 4.8438
02A7: 3@ = create_icon_marker_and_sphere 19 at -2229.0303 2326.8035 7.5469
02A7: 4@ = create_icon_marker_and_sphere 19 at -2613.7712 2256.8596 8.2025
02A7: 5@ = create_icon_marker_and_sphere 19 at -2492.1201 2212.6528 4.9844
02A7: 6@ = create_icon_marker_and_sphere 19 at -2529.0417 2290.6257 4.9844
02A7: 7@ = create_icon_marker_and_sphere 19 at -2529.1702 2362.2112 4.9859
02A7: 8@ = create_icon_marker_and_sphere 19 at -2294.0710 2252.3599 4.9844
02A7: 9@ = create_icon_marker_and_sphere 19 at -2263.6338 2304.9353 4.8202
02A7: 10@ = create_icon_marker_and_sphere 19 at -2963.6338 2304.9353 4.8202
SAMP.CmdRet()
 
Status
Not open for further replies.
Top