amagedron156
Active member
- Joined
- Jan 28, 2015
- Messages
- 37
- Reaction score
- 1
I found this cleo on here, i was wondering if someone could make it so it works on 0.3dl cause it crashes the game upon entrance. Here is the code and the script :
Code:
{$CLEO .cs}
0000:
repeat
wait 50
until 0AFA: is_samp_structures_available
0B34: samp register_client_command "checkpointc" to_label @create
0B34: samp register_client_command "checkpointd" to_label @DeLeTe
while true
wait 0
if 31@ == true
then
if 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 4@ 5@ 6@ radius 2.0 2.0 2.0
then
0164: disable_marker 7@
end
end
end
:create
0B35: samp 0@ = get_last_command_params
if
0AD4: 4@ = scan_string 0@ format "%d %d %d" 1@ 2@ 3@
then
0093: 4@ = integer 1@ to_float
0093: 5@ = integer 2@ to_float
0093: 6@ = integer 3@ to_float
02A7: 7@ = create_icon_marker_and_sphere 22 at 4@ 5@ 6@
31@ = true
else
0AD1: show_formatted_text_highpriority "Wrong format. Example: /checkpointc 1 1 1" time 2000
end
SAMP.CmdRet
:delete
0164: disable_marker 7@
31@ = false
SAMP.CmdRet
Code:
{$CLEO .cs}
0000:
repeat
wait 50
until 0AFA: is_samp_structures_available
0B34: samp register_client_command "checkpointc" to_label @create
0B34: samp register_client_command "checkpointd" to_label @DeLeTe
while true
wait 0
if 31@ == true
then
if 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 4@ 5@ 6@ radius 2.0 2.0 2.0
then
0164: disable_marker 7@
end
end
end
:create
0B35: samp 0@ = get_last_command_params
if
0AD4: 4@ = scan_string 0@ format "%d %d %d" 1@ 2@ 3@
then
0093: 4@ = integer 1@ to_float
0093: 5@ = integer 2@ to_float
0093: 6@ = integer 3@ to_float
02A7: 7@ = create_icon_marker_and_sphere 22 at 4@ 5@ 6@
31@ = true
else
0AD1: show_formatted_text_highpriority "Wrong format. Example: /checkpointc 1 1 1" time 2000
end
SAMP.CmdRet
:delete
0164: disable_marker 7@
31@ = false
SAMP.CmdRet