- 4,807
- 6,491
Попробуй так:Ребят, как сделать так, чтобы timestamp (время в чате в игре) окрашивался в тот цвет, который я укажу в ini файле в строке "Timestamp="?
CLEO:{$CLEO} {$INCLUDE SF} 0000: if 8AF7: get_samp_base_to 33@ then 0A93: end_custom_thread end repeat wait 400 until 0AFA: is_samp_structures_available 0B34: samp register_client_command "fsms" to_label @fsms 0AC8: 0@ = allocate_memory_size 256 0AC8: 1@ = allocate_memory_size 256 0AC8: 2@ = allocate_memory_size 256 0AF4: 0@ = read_string_from_ini_file "CLEO\Fsms.ini" section "Fsms" key "Òåêñò" 0AF4: 1@ = read_string_from_ini_file "CLEO\Fsms.ini" section "Fsms" key "Timestamp" while true wait 0 end :fsms 0AF4: 0@ = read_string_from_ini_file "CLEO\Fsms.ini" section "Fsms" key "Òåêñò" 0AF4: 1@ = read_string_from_ini_file "CLEO\Fsms.ini" section "Fsms" key "Timestamp" 0AF8: samp add_message_to_chat "%s" 0@ SAMP.CmdRet()
CLEO:
{$CLEO}
{$INCLUDE SF}
0000:
if 8AF7: get_samp_base_to 33@
then 0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available
0B34: samp register_client_command "fsms" to_label @fsms
0AC8: 0@ = allocate_memory_size 256
0AC8: 1@ = allocate_memory_size 256
0AC8: 2@ = allocate_memory_size 256
0AF4: 0@ = read_string_from_ini_file "CLEO\Fsms.ini" section "Fsms" key "Òåêñò"
0AF4: 1@ = read_string_from_ini_file "CLEO\Fsms.ini" section "Fsms" key "Timestamp"
while true
wait 0
end
:fsms
0AF4: 0@ = read_string_from_ini_file "CLEO\Fsms.ini" section "Fsms" key "Òåêñò"
0AF4: 1@ = read_string_from_ini_file "CLEO\Fsms.ini" section "Fsms" key "Timestamp"
if 0AD4: 1@ = scan_string 1@ format "%X" 2@
then 0AF8: samp add_message_to_chat 0@ 2@
end
SAMP.CmdRet()
У тебя нет проверок на конкретный цветНу там не так много игроков с цветом) НУ а вообще я сначала думал, чтобы выдавало по 1 строке так.
Вот тебе код:
Код:
{$CLEO}
0000:
wait 2000
0B34: "test" to_label @Test
while true
wait 0
end
:Test
for 0@ = 0 to 1000
if 0B23: samp is_player_connected 0@
jf continue
0B37: samp 1@ = get_player_color 0@
0B36: samp 3@ = get_player_nickname 0@
0B65: samp 4@ = player 0@ score
0AF8: samp add_message_to_chat "Score: %d || Nickname: %s || Color: %08X" color -1 4@ 3@ 1@
end
cmdret
P.S. Вы оба ленивые ублюдки, которые поленились прочитать справку и вики, дальнейшей помощи не ждите