CLEO Help CLEO HELP

CLEO related
Status
Not open for further replies.

UraaUraa

Active member
Joined
Feb 28, 2022
Messages
31
Reaction score
0
Location
Russia
i Created 3 markers but i dont know how to auto removal after i I walk over it can u help me guys i begginer.... ?

{$CLEO .cs}

script_name "TEST2"

0570: 1@ = create_asset_radar_marker_with_icon 41 at 2248.0554 -1261.0439 23.9558
0570: 1@ = create_asset_radar_marker_with_icon 41 at 2254.886 -1260.8098 23.9665
0570: 1@ = create_asset_radar_marker_with_icon 41 at 2262.5476 -1260.6907 23.9766

03DC: 33@ = create_marker_above_pickup 33@


terminate_this_script
 

UraaUraa

Active member
Joined
Feb 28, 2022
Messages
31
Reaction score
0
Location
Russia
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0ADC:   test_cheat "SCR"
THEN
    0B12: 31@ = 31@ XOR 1        
    IF 0039:   31@ == 1
    THEN 
        0AB1: @CreateMarker 7 ID 1 XYZ 2248.0554 -1261.0439 23.9558 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 2 XYZ 2254.886 -1260.8098 23.9665 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 3 XYZ 2262.5476 -1260.6907 23.9766 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 4 XYZ 2228.0615 -1260.8759 23.916 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 5 XYZ 2270.2764 -1260.9529 23.8255 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 6 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3    
        0AD1: show_formatted_text_highpriority "~w~Script~n~~g~ON" time 1337
    ELSE
        0AB1: @DeleteMarker 1 ID 1
        0AB1: @DeleteMarker 1 ID 2
        0AB1: @DeleteMarker 1 ID 3 
        0AB1: @DeleteMarker 1 ID 4
        0AB1: @DeleteMarker 1 ID 5
        0AB1: @DeleteMarker 1 ID 6
        0AD1: show_formatted_text_highpriority "~w~Script~n~~r~OFF" time 137   
    END
END

IF 31@ == 1
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2248.0554 -1261.0439 23.9558 radius 2.0 2.0 2.0
        THEN 0AB1: @DeleteMarker 1 ID 1
        ELSE
            IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2254.886 -1260.8098 23.9665 radius 2.0 2.0 2.0
            THEN 0AB1: @DeleteMarker 1 ID 2
            ELSE
                IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2262.5476 -1260.6907 23.9766 radius 2.0 2.0 2.0
                THEN 0AB1: @DeleteMarker 1 ID 3
                ELSE
                    IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2228.0615 -1260.8759 23.916 radius 2.0 2.0 2.0
                    THEN 0AB1: @DeleteMarker 1 ID 4
                    ELSE
                        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2270.2764 -1260.9529 23.8255 radius 2.0 2.0 2.0
                        THEN 0AB1: @DeleteMarker 1 ID 5
                        ELSE
                            IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0
                            THEN 0AB1: @DeleteMarker 1 ID 6
                            END
                        END  
                    END 
                END
            END
        END
    END
END

END
0A93: terminate_this_custom_script

:CreateMarker
{
    0.3.7 - R1
    0AB1: @CreateMarker 7 ID 2 XYZ 1@ 2@ 3@ Icon 23 Color 0xFF0000FF Style 1
}
IF 0AA2: 31@ = "samp.dll"
THEN                 
    0A8E: 30@ = 31@ + 0x21A0F8 // SAMP_INFO_OFFSET
    0A8D: 30@ = readMem 30@ sz 4 vp 0   
 
    0A8E: 29@ = 31@ + 0x9E20 // SAMP_CREATE_MARKER_OFFSET
    0AA8: call_function_method 29@ struct 30@ num_params 7 pop 0 Type 6@ Color 5@ Icon 4@ ZYX 3@ 2@ 1@ Index 0@ _retVal 28@
END
0AB2: 0

:DeleteMarker
{
    0.3.7 - R1
    0AB1: @DeleteMarker 1 ID 2
}
IF 0AA2: 31@ = "samp.dll"
THEN
    0A8E: 30@ = 31@ + 0x21A0F8 // SAMP_INFO_OFFSET
    0A8D: 30@ = readMem 30@ sz 4 vp 0
 
    0A8E: 29@ = 31@ + 0x8AB0 // SAMP_DELETE_MARKER_OFFSET
    0AA8: call_function_method 29@ struct 30@ num_params 1 pop 0 Index 0@ _retVal 28@
END
0AB2: 0
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
WORKING perfectly, read what Parazitas say.
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0ADC:   test_cheat "SCR"
THEN
    0B12: 31@ = 31@ XOR 1       
    IF 0039:   31@ == 1
    THEN
        0AB1: @CreateMarker 7 ID 1 XYZ 2248.0 -1260.0 23.9 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 2 XYZ 2254.0 -1260.0 23.9 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 3 XYZ 2260.0 -1260.0 23.9 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 4 XYZ 2268.0 -1260.0 23.9 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 5 XYZ 2276.0 -1260.0 23.9 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 6 XYZ 2284.0 -1260.0 23.9 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 7 XYZ 2292.0 -1260.0 23.9 Icon 41 Color 0xFF0000FF Style 3
        0AB1: @CreateMarker 7 ID 8 XYZ 2300.0 -1260.0 23.9 Icon 41 Color 0xFF0000FF Style 3                   
        0AD1: show_formatted_text_highpriority "~w~Script~n~~g~ON" time 1337
    ELSE
        0AB1: @DeleteMarker 1 ID 1
        0AB1: @DeleteMarker 1 ID 2
        0AB1: @DeleteMarker 1 ID 3
        0AB1: @DeleteMarker 1 ID 4
        0AB1: @DeleteMarker 1 ID 5
        0AB1: @DeleteMarker 1 ID 6
        0AB1: @DeleteMarker 1 ID 7
        0AB1: @DeleteMarker 1 ID 8                 
        0AD1: show_formatted_text_highpriority "~w~Script~n~~r~OFF" time 137  
    END
END

IF 31@ == 1
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2248.0 -1260.0 23.9 radius 2.0 2.0 2.0
        THEN 0AB1: @DeleteMarker 1 ID 1
        ELSE
            IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2254.0 -1260.0 23.9 radius 2.0 2.0 2.0
            THEN 0AB1: @DeleteMarker 1 ID 2
            ELSE
                IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2260.0 -1260.0 23.9 radius 2.0 2.0 2.0
                THEN 0AB1: @DeleteMarker 1 ID 3
                ELSE
                    IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2268.0 -1260.0 23.9 radius 2.0 2.0 2.0
                    THEN 0AB1: @DeleteMarker 1 ID 4               
                    ELSE
                        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.0 -1260.0 23.9 radius 2.0 2.0 2.0
                        THEN 0AB1: @DeleteMarker 1 ID 5               
                        ELSE
                            IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2284.0 -1260.0 23.9 radius 2.0 2.0 2.0
                            THEN 0AB1: @DeleteMarker 1 ID 6              
                            ELSE
                                IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2292.0 -1260.0 23.9 radius 2.0 2.0 2.0
                                THEN 0AB1: @DeleteMarker 1 ID 7               
                                ELSE
                                    IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2300.0 -1260.0 23.9 radius 2.0 2.0 2.0
                                    THEN 0AB1: @DeleteMarker 1 ID 8               
                                    END
                                END
                            END
                        END
                    END
                END
            END
        END
    END
END

END
0A93: terminate_this_custom_script
example, no more.
 

Attachments

  • Script.cs
    22.5 KB · Views: 1

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Example below:
PHP:
{$CLEO .cs}
{$USE bitwise}

0000:

REPEAT
IF 8256:   player $PLAYER_CHAR defined
THEN 0A93: end_custom_thread
END
WAIT 1500
UNTIL 0256:   player $PLAYER_CHAR defined

WHILE TRUE
WAIT 0

IF 0ADC:   test_cheat "SCR"
THEN
    0B12: 31@ = 31@ XOR 1        
    IF 0039:   31@ == 1
    THEN 
        0AB1: @CreateMarker 7 ID 1 XYZ 2248.0554 -1261.0439 23.9558 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 2 XYZ 2254.886 -1260.8098 23.9665 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 3 XYZ 2262.5476 -1260.6907 23.9766 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 4 XYZ 2228.0615 -1260.8759 23.916 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 5 XYZ 2270.2764 -1260.9529 23.8255 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 6 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position 
        0AB1: @CreateMarker 7 ID 7 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 8 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 9 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 10 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 11 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 12 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 13 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 14 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 15 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 16 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 17 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 18 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 19 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 20 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 21 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 22 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 23 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 24 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 25 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 26 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 27 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 28 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 29 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 30 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 31 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 32 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 33 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 34 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 35 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 36 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 37 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 38 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 39 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 40 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 41 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 42 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 43 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 44 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 45 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 46 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 47 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 48 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 49 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position
        0AB1: @CreateMarker 7 ID 50 XYZ 2276.1821 -1261.4552 23.9809 Icon 41 Color 0xFF0000FF Style 3 // Create marker on position   
        0AD1: show_formatted_text_highpriority "~w~Script~n~~g~ON" time 1337
    ELSE
        0AB1: @DeleteMarker 1 ID 1
        0AB1: @DeleteMarker 1 ID 2
        0AB1: @DeleteMarker 1 ID 3 
        0AB1: @DeleteMarker 1 ID 4
        0AB1: @DeleteMarker 1 ID 5
        0AB1: @DeleteMarker 1 ID 6
        0AB1: @DeleteMarker 1 ID 7
        0AB1: @DeleteMarker 1 ID 8
        0AB1: @DeleteMarker 1 ID 9
        0AB1: @DeleteMarker 1 ID 10
        0AB1: @DeleteMarker 1 ID 11
        0AB1: @DeleteMarker 1 ID 12
        0AB1: @DeleteMarker 1 ID 13
        0AB1: @DeleteMarker 1 ID 14
        0AB1: @DeleteMarker 1 ID 15
        0AB1: @DeleteMarker 1 ID 16
        0AB1: @DeleteMarker 1 ID 17
        0AB1: @DeleteMarker 1 ID 18
        0AB1: @DeleteMarker 1 ID 19
        0AB1: @DeleteMarker 1 ID 20
        0AB1: @DeleteMarker 1 ID 21
        0AB1: @DeleteMarker 1 ID 22
        0AB1: @DeleteMarker 1 ID 23
        0AB1: @DeleteMarker 1 ID 24
        0AB1: @DeleteMarker 1 ID 25
        0AB1: @DeleteMarker 1 ID 26
        0AB1: @DeleteMarker 1 ID 27
        0AB1: @DeleteMarker 1 ID 28
        0AB1: @DeleteMarker 1 ID 29
        0AB1: @DeleteMarker 1 ID 30
        0AB1: @DeleteMarker 1 ID 31
        0AB1: @DeleteMarker 1 ID 32
        0AB1: @DeleteMarker 1 ID 33
        0AB1: @DeleteMarker 1 ID 34
        0AB1: @DeleteMarker 1 ID 35
        0AB1: @DeleteMarker 1 ID 36
        0AB1: @DeleteMarker 1 ID 37
        0AB1: @DeleteMarker 1 ID 38
        0AB1: @DeleteMarker 1 ID 39
        0AB1: @DeleteMarker 1 ID 40
        0AB1: @DeleteMarker 1 ID 41
        0AB1: @DeleteMarker 1 ID 42
        0AB1: @DeleteMarker 1 ID 43
        0AB1: @DeleteMarker 1 ID 44
        0AB1: @DeleteMarker 1 ID 45
        0AB1: @DeleteMarker 1 ID 46
        0AB1: @DeleteMarker 1 ID 47
        0AB1: @DeleteMarker 1 ID 48
        0AB1: @DeleteMarker 1 ID 49
        0AB1: @DeleteMarker 1 ID 50
        0AD1: show_formatted_text_highpriority "~w~Script~n~~r~OFF" time 137   
    END
END

IF 31@ == 1
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2248.0554 -1261.0439 23.9558 radius 2.0 2.0 2.0 // Delete Marker with ID 1 on position
        THEN 0AB1: @DeleteMarker 1 ID 1
        END

        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2254.886 -1260.8098 23.9665 radius 2.0 2.0 2.0 // Delete Marker with ID 2 on position
        THEN 0AB1: @DeleteMarker 1 ID 2
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2262.5476 -1260.6907 23.9766 radius 2.0 2.0 2.0 // Delete Marker with ID 3 on position
        THEN 0AB1: @DeleteMarker 1 ID 3
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2228.0615 -1260.8759 23.916 radius 2.0 2.0 2.0 // Delete Marker with ID 4 on position
        THEN 0AB1: @DeleteMarker 1 ID 4
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2270.2764 -1260.9529 23.8255 radius 2.0 2.0 2.0 // Delete Marker with ID 5 on position
        THEN 0AB1: @DeleteMarker 1 ID 5
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 6 on position
        THEN 0AB1: @DeleteMarker 1 ID 6
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 7 on position
        THEN 0AB1: @DeleteMarker 1 ID 7
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 8 on position
        THEN 0AB1: @DeleteMarker 1 ID 8
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 9 on position
        THEN 0AB1: @DeleteMarker 1 ID 9
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 10 on position
        THEN 0AB1: @DeleteMarker 1 ID 10
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 11 on position
        THEN 0AB1: @DeleteMarker 1 ID 11
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 12 on position
        THEN 0AB1: @DeleteMarker 1 ID 12
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 13 on position
        THEN 0AB1: @DeleteMarker 1 ID 13
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 14 on position
        THEN 0AB1: @DeleteMarker 1 ID 14
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 15 on position
        THEN 0AB1: @DeleteMarker 1 ID 15
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 16 on position
        THEN 0AB1: @DeleteMarker 1 ID 16
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 17 on position
        THEN 0AB1: @DeleteMarker 1 ID 17
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 18 on position
        THEN 0AB1: @DeleteMarker 1 ID 18
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 19 on position
        THEN 0AB1: @DeleteMarker 1 ID 19
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 20 on position
        THEN 0AB1: @DeleteMarker 1 ID 20
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 21 on position
        THEN 0AB1: @DeleteMarker 1 ID 21
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 22 on position
        THEN 0AB1: @DeleteMarker 1 ID 22
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 23 on position
        THEN 0AB1: @DeleteMarker 1 ID 23
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 24 on position
        THEN 0AB1: @DeleteMarker 1 ID 24
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 25 on position
        THEN 0AB1: @DeleteMarker 1 ID 25
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 26 on position
        THEN 0AB1: @DeleteMarker 1 ID 26
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 27 on position
        THEN 0AB1: @DeleteMarker 1 ID 27
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 28 on position
        THEN 0AB1: @DeleteMarker 1 ID 28
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 29 on position
        THEN 0AB1: @DeleteMarker 1 ID 29
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 30 on position
        THEN 0AB1: @DeleteMarker 1 ID 30
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 31 on position 
        THEN 0AB1: @DeleteMarker 1 ID 31
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 32 on position
        THEN 0AB1: @DeleteMarker 1 ID 32
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 33 on position
        THEN 0AB1: @DeleteMarker 1 ID 33
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 34 on position
        THEN 0AB1: @DeleteMarker 1 ID 34
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 35 on position
        THEN 0AB1: @DeleteMarker 1 ID 35
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 36 on position
        THEN 0AB1: @DeleteMarker 1 ID 36
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 37 on position
        THEN 0AB1: @DeleteMarker 1 ID 37
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 38 on position
        THEN 0AB1: @DeleteMarker 1 ID 38
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 39 on position
        THEN 0AB1: @DeleteMarker 1 ID 39
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 40 on position
        THEN 0AB1: @DeleteMarker 1 ID 40
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 41 on position
        THEN 0AB1: @DeleteMarker 1 ID 41
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 42 on position
        THEN 0AB1: @DeleteMarker 1 ID 42
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 43 on position
        THEN 0AB1: @DeleteMarker 1 ID 43
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 44 on position
        THEN 0AB1: @DeleteMarker 1 ID 44
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 45 on position
        THEN 0AB1: @DeleteMarker 1 ID 45
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 46 on position
        THEN 0AB1: @DeleteMarker 1 ID 46
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 47 on position
        THEN 0AB1: @DeleteMarker 1 ID 47
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 48 on position
        THEN 0AB1: @DeleteMarker 1 ID 48
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 49 on position
        THEN 0AB1: @DeleteMarker 1 ID 49
        END
        
        IF 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2276.1821 -1261.4552 23.9809 radius 2.0 2.0 2.0 // Delete Marker with ID 50 on position
        THEN 0AB1: @DeleteMarker 1 ID 50
        END
        
    END
END

END
0A93: terminate_this_custom_script

:CreateMarker
{
    0.3.7 - R1
    0AB1: @CreateMarker 7 ID 2 XYZ 1@ 2@ 3@ Icon 23 Color 0xFF0000FF Style 1
}
IF 0AA2: 31@ = "samp.dll"
THEN                 
    0A8E: 30@ = 31@ + 0x21A0F8 // SAMP_INFO_OFFSET
    0A8D: 30@ = readMem 30@ sz 4 vp 0   
 
    0A8E: 29@ = 31@ + 0x9E20 // SAMP_CREATE_MARKER_OFFSET
    0AA8: call_function_method 29@ struct 30@ num_params 7 pop 0 Type 6@ Color 5@ Icon 4@ ZYX 3@ 2@ 1@ Index 0@ _retVal 28@
END
0AB2: 0

:DeleteMarker
{
    0.3.7 - R1
    0AB1: @DeleteMarker 1 ID 2
}
IF 0AA2: 31@ = "samp.dll"
THEN
    0A8E: 30@ = 31@ + 0x21A0F8 // SAMP_INFO_OFFSET
    0A8D: 30@ = readMem 30@ sz 4 vp 0
 
    0A8E: 29@ = 31@ + 0x8AB0 // SAMP_DELETE_MARKER_OFFSET
    0AA8: call_function_method 29@ struct 30@ num_params 1 pop 0 Index 0@ _retVal 28@
END
0AB2: 0

Examample above is at the moment with 50 markers, all you need is change position of them and at opcode where they are deleting on position...
Good luck and that's all from my side..
You better study it....
 

UraaUraa

Active member
Joined
Feb 28, 2022
Messages
31
Reaction score
0
Location
Russia
@Parazitas I found a script where the markers and icons don't disappear, how can I add more markers and icons here, can you do the same for me to add at least 50 positions? in the one above that you sent me, they disappear again

PHP:
// This file was decompiled using SASCM.ini published on 2022-03-20
{$CLEO .cs}

script_name ".CS TEAM" 
0000: NOP 

:_CS_TEAM_14
wait 0 
0AFA: 
jf @_CS_TEAM_14 
0B34: 
hex
 0E 07 62 61 79 73 69 64 65 01 19 FD FF FF
end

:_CS_TEAM_43
wait 0 
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2263.5581 -1261.9818 23.9766 radius 6.0 6.0 20.0 
jf @_CS_TEAM_100 
Marker.Disable(0@)

:_CS_TEAM_100
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2263.4294 -1255.6396 23.9766 radius 6.0 6.0 20.0 
jf @_CS_TEAM_153 
Marker.Disable(1@)

:_CS_TEAM_153
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2263.3823 -1248.944 23.9766 radius 6.0 6.0 20.0 
jf @_CS_TEAM_206 
Marker.Disable(2@)

:_CS_TEAM_206
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2263.3792 -1242.7543 23.9766 radius 6.0 6.0 20.0 
jf @_CS_TEAM_259 
Marker.Disable(3@)

:_CS_TEAM_259
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2263.3708 -1235.4111 23.9766 radius 6.0 6.0 20.0 
jf @_CS_TEAM_312 
Marker.Disable(4@)

:_CS_TEAM_312
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 2263.3196 -1224.9784 23.8047 radius 6.0 6.0 20.0 
jf @_CS_TEAM_365 
Marker.Disable(5@)

:_CS_TEAM_365
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2494.763 2214.097 4.9844 radius 6.0 6.0 20.0 
jf @_CS_TEAM_418 
Marker.Disable(6@)

:_CS_TEAM_418
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2412.127 2216.517 4.9844 radius 6.0 6.0 20.0 
jf @_CS_TEAM_471 
Marker.Disable(7@)

:_CS_TEAM_471
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2610.793 2256.95 8.2109 radius 6.0 6.0 20.0 
jf @_CS_TEAM_524 
Marker.Disable(8@)

:_CS_TEAM_524
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2529.791 2290.409 4.9844 radius 6.0 6.0 20.0 
jf @_CS_TEAM_577 
Marker.Disable(9@)

:_CS_TEAM_577
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2529.231 2362.597 4.986 radius 6.0 6.0 20.0 
jf @_CS_TEAM_630 
Marker.Disable(10@)

:_CS_TEAM_630
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2522.281 2452.116 17.9279 radius 6.0 6.0 20.0 
jf @_CS_TEAM_683 
Marker.Disable(11@)

:_CS_TEAM_683
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2511.979 2475.203 18.8213 radius 6.0 6.0 20.0 
jf @_CS_TEAM_736 
Marker.Disable(12@)

:_CS_TEAM_736
jump -43 
wait 0 
0AF8: 
hex
 0E 3F 7B 46 34 32 42 30 30 7D 5B 2E 43 53 20 54
 45 41 4D 5D 20 7B 46 46 43 31 34 43 7D 20 41 6C
 67 6F 72 69 74 61 6D 20 7A 61 20 42 61 79 73 69
 64 65 20 6A 65 20 61 6B 74 69 76 69 72 61 6E 21
 21 00
end
Marker.CreateIconAndSphere(0@, 19, 2263.5581 -1261.9818 23.9766)
Marker.CreateIconAndSphere(1@, 19, 2263.4294 -1255.6396 23.9766)
Marker.CreateIconAndSphere(2@, 19, 2263.3823 -1248.944 23.9766)
Marker.CreateIconAndSphere(3@, 19, 2263.3792 -1242.7543 23.9766)
Marker.CreateIconAndSphere(4@, 19, 2263.3708 -1235.4111 23.9766)
Marker.CreateIconAndSphere(5@, 19, 2263.3196 -1224.9784 23.8047)
Marker.CreateIconAndSphere(6@, 19, -2494.763, 2214.097, 4.9844)
Marker.CreateIconAndSphere(7@, 19, -2412.127, 2216.517, 4.9844)
Marker.CreateIconAndSphere(8@, 19, -2610.793, 2256.95, 8.2109)
Marker.CreateIconAndSphere(9@, 19, -2529.791, 2290.409, 4.9844)
Marker.CreateIconAndSphere(10@, 19, -2529.231, 2362.597, 4.986)
Marker.CreateIconAndSphere(11@, 19, -2522.281, 2452.116, 17.9279)
Marker.CreateIconAndSphere(12@, 19, -2511.979, 2475.203, 18.8213)
0B43:
 
Status
Not open for further replies.
Top