@dphome
{$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
eleteMarker
{
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