Скрипт позволяет заменить цвет всех чекпоинтов/маркеров на сервере на свой.
Цвет записывается в ini файл в формате RGB раздельно.
PHP:
{$CLEO .cs}
0662: "markerscolor"
thread "markerscolor"
if
8AF7: get_samp_base_to 33@
then
0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available
while true
wait 0
for 30@ = 0 to 31
wait 0
0AB1: call @GetMarkerColor 1 id 30@ R 29@ G 28@ B 27@
0AB1: call @GetRaceMarkerColor 1 id 30@ R 22@ G 21@ B 20@
0AF0: 25@ = get_int_from_ini_file "cleo\markercolor.ini" section "RGBA" key "R"
0AF0: 24@ = get_int_from_ini_file "cleo\markercolor.ini" section "RGBA" key "G"
0AF0: 23@ = get_int_from_ini_file "cleo\markercolor.ini" section "RGBA" key "B"
if or
803B: not 29@ == 25@
803B: not 28@ == 24@
803B: not 27@ == 23@
803B: not 22@ == 25@
803B: not 21@ == 24@
803B: not 20@ == 23@
then
0AB1: call @SetMarkerColor 4 id 30@ R 25@ G 24@ B 23@
0AB1: call @SetRaceMarkerColor 4 id 30@ R 25@ G 24@ B 23@
end
end
end
:setmarkercolor
0@ *= 160
0@ += 0xC7DD58
0C0D: struct 0@ offset 88 size 1 = 1@
0C0D: struct 0@ offset 89 size 1 = 2@
0C0D: struct 0@ offset 90 size 1 = 3@
0AB2: ret 0
:getmarkercolor
0@ *= 160
0@ += 0xC7DD58
0C0C: 1@ = struct 0@ offset 88 size 1
0C0C: 2@ = struct 0@ offset 89 size 1
0C0C: 3@ = struct 0@ offset 90 size 1
0AB2: ret 3 1@ 2@ 3@
:setracemarkercolor
0@ *= 56
0@ += 0xC7F158
0C0D: struct 0@ offset 8 size 1 = 1@
0C0D: struct 0@ offset 9 size 1 = 2@
0C0D: struct 0@ offset 10 size 1 = 3@
0AB2: ret 0
:getracemarkercolor
0@ *= 56
0@ += 0xC7F158
0C0C: 1@ = struct 0@ offset 8 size 1
0C0C: 2@ = struct 0@ offset 9 size 1
0C0C: 3@ = struct 0@ offset 10 size 1
0AB2: ret 3 1@ 2@ 3@