Lua newChat

Fott

Простреленный
Автор темы
3,431
2,270
Версия SA-MP
  1. 0.3.7 (R1)
  2. 0.3.7-R2
  3. 0.3.7-R3
  4. 0.3.7-R4
Скрипт при активации создает "свой чат", а стандартный отключает.
Есть возможность менять положение чата, шрифт, размер, количество строк.
Активация: /goy
Меню настройки: /cpos
1594472953771.png
 

Вложения

  • newChat.lua
    17.2 KB · Просмотры: 379
Последнее редактирование:

RiTwin

Новичок
20
11
Через лаунчер аризоны когда нажимаешь ESC чат не исчезает
1594477301602.png
Как на стандартной хз ( еще у меня установлено куча скриптов и плагинов, возможно с чем-то конфликтует )
 
  • Влюблен
Реакции: Fott

Fott

Простреленный
Автор темы
3,431
2,270

winten

Потрачен
409
182
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Сделай сeкунды в timestamp и лучше "Наведи на меня" замени на "?"
 
Последнее редактирование модератором:
  • Влюблен
Реакции: Fott

Vespan

loneliness
Проверенный
2,101
1,633
- Как тебе ?
- Хорошо сделал,я бы пользовался если не было mimgui chat'a
 
  • Грустно
Реакции: Fott

RiTwin

Новичок
20
11
Обычный чат можно скролить клавишами pgup и pddown, было бы неплохо если б сделал также.
После перезахода в игру включается обычный чат.
Хотелось бы чтобы была возможность включать и отключать время.

UPD: Помимо pgup и pgdown, можно скролить колесиком мыши
 
  • Нравится
Реакции: Vespan

trefa

Известный
Всефорумный модератор
2,097
1,231
Я художник я так вижу
Почитай, говорят полезно
 
  • Нравится
  • Влюблен
Реакции: Hristot и shinoa

D3.Pheonix

🎹
Модератор
2,817
1,599
Непонятно зачем, если есть mimgui chat, и врядли ты не знал о нем...
 
  • Нравится
Реакции: Vespan

looney_

Участник
48
10
Lua:
for i=1, healprocent.v do
                text, prefix, color, pcolor = sampGetChatString(100-i)
                renderFontDrawText(chatfont, ""..text.."", mainIni.config.pos_x, mainIni.config.pos_y+i*20 , color)
end
вместо

Lua:
if healprocent.v == 1 then
    
         text, prefix, color, pcolor = sampGetChatString(90)
     text1, prefix1, color1, pcolor1 = sampGetChatString(91)
     text2, prefix2, color2, pcolor = sampGetChatString(92)
     text3, prefix3, color3, pcolor1 = sampGetChatString(93)
     text4, prefix4, color4, pcolor = sampGetChatString(94)
     text5, prefix5, color5, pcolor1 = sampGetChatString(95)
     text6, prefix6, color6, pcolor = sampGetChatString(96)
     text7, prefix7, color7, pcolor1 = sampGetChatString(97)
     text8, prefix8, colo8, pcolor = sampGetChatString(98)
     text9, prefix9, color9, pcolor1 = sampGetChatString(99)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text..'', mainIni.config.pos_x, mainIni.config.pos_y, color)
    end
    if healprocent.v == 2 then
    
     text, prefix, color, pcolor = sampGetChatString(90)
     text1, prefix1, color1, pcolor1 = sampGetChatString(91)
     text2, prefix, color2, pcolor = sampGetChatString(92)
     text3, prefix1, color3, pcolor1 = sampGetChatString(93)
     text4, prefix, color4, pcolor = sampGetChatString(94)
     text5, prefix1, color5, pcolor1 = sampGetChatString(95)
     text6, prefix, color6, pcolor = sampGetChatString(96)
     text7, prefix1, color7, pcolor1 = sampGetChatString(97)
     text8, prefix, color8, pcolor = sampGetChatString(98)
     text9, prefix1, color9, pcolor1 = sampGetChatString(99)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text..'', mainIni.config.pos_x, mainIni.config.pos_y, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text1..'', mainIni.config.pos_x, mainIni.config.pos_y+20, color)
    end
    if healprocent.v == 3 then
    
     text, prefix, color, pcolor = sampGetChatString(90)
     text1, prefix1, color1, pcolor1 = sampGetChatString(91)
     text2, prefix, color2, pcolor = sampGetChatString(92)
     text3, prefix1, color3, pcolor1 = sampGetChatString(93)
     text4, prefix, color4, pcolor = sampGetChatString(94)
     text5, prefix1, color5, pcolor1 = sampGetChatString(95)
     text6, prefix, color6, pcolor = sampGetChatString(96)
     text7, prefix1, color7, pcolor1 = sampGetChatString(97)
     text8, prefix, color8, pcolor = sampGetChatString(98)
     text9, prefix1, color9, pcolor1 = sampGetChatString(99)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text..'', mainIni.config.pos_x, mainIni.config.pos_y, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text1..'', mainIni.config.pos_x, mainIni.config.pos_y+20, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text2..'', mainIni.config.pos_x, mainIni.config.pos_y+40, color)
    end
    if healprocent.v == 4 then
    
     text, prefix, color, pcolor = sampGetChatString(90)
     text1, prefix1, color1, pcolor1 = sampGetChatString(91)
     text2, prefix, color2, pcolor = sampGetChatString(92)
     text3, prefix1, color3, pcolor1 = sampGetChatString(93)
     text4, prefix, color4, pcolor = sampGetChatString(94)
     text5, prefix1, color5, pcolor1 = sampGetChatString(95)
     text6, prefix, color6, pcolor = sampGetChatString(96)
     text7, prefix1, color7, pcolor1 = sampGetChatString(97)
     text8, prefix, color8, pcolor = sampGetChatString(98)
     text9, prefix1, color9, pcolor1 = sampGetChatString(99)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text..'', mainIni.config.pos_x, mainIni.config.pos_y, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text1..'', mainIni.config.pos_x, mainIni.config.pos_y+20, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text2..'', mainIni.config.pos_x, mainIni.config.pos_y+40, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text3..'', mainIni.config.pos_x, mainIni.config.pos_y+60, color)
    end
        if healprocent.v == 5 then
    
     text, prefix, color, pcolor = sampGetChatString(90)
     text1, prefix1, color1, pcolor1 = sampGetChatString(91)
     text2, prefix, color2, pcolor = sampGetChatString(92)
     text3, prefix1, color3, pcolor1 = sampGetChatString(93)
     text4, prefix, color4, pcolor = sampGetChatString(94)
     text5, prefix1, color5, pcolor1 = sampGetChatString(95)
     text6, prefix, color6, pcolor = sampGetChatString(96)
     text7, prefix1, color7, pcolor1 = sampGetChatString(97)
     text8, prefix, color8, pcolor = sampGetChatString(98)
     text9, prefix1, color9, pcolor1 = sampGetChatString(99)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text..'', mainIni.config.pos_x, mainIni.config.pos_y, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text1..'', mainIni.config.pos_x, mainIni.config.pos_y+20, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text2..'', mainIni.config.pos_x, mainIni.config.pos_y+40, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text3..'', mainIni.config.pos_x, mainIni.config.pos_y+60, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text4..'', mainIni.config.pos_x, mainIni.config.pos_y+80, color)
    end
   if healprocent.v == 6 then
    
     text, prefix, color, pcolor = sampGetChatString(90)
     text1, prefix1, color1, pcolor1 = sampGetChatString(91)
     text2, prefix, color2, pcolor = sampGetChatString(92)
     text3, prefix1, color3, pcolor1 = sampGetChatString(93)
     text4, prefix, color4, pcolor = sampGetChatString(94)
     text5, prefix1, color5, pcolor1 = sampGetChatString(95)
     text6, prefix, color6, pcolor = sampGetChatString(96)
     text7, prefix1, color7, pcolor1 = sampGetChatString(97)
     text8, prefix, color8, pcolor = sampGetChatString(98)
     text9, prefix1, color9, pcolor1 = sampGetChatString(99)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text..'', mainIni.config.pos_x, mainIni.config.pos_y, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text1..'', mainIni.config.pos_x, mainIni.config.pos_y+20, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text2..'', mainIni.config.pos_x, mainIni.config.pos_y+40, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text3..'', mainIni.config.pos_x, mainIni.config.pos_y+60, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text4..'', mainIni.config.pos_x, mainIni.config.pos_y+80, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text5..'', mainIni.config.pos_x, mainIni.config.pos_y+100, color)
    end
    if healprocent.v == 7 then
    
     text, prefix, color, pcolor = sampGetChatString(90)
     text1, prefix1, color1, pcolor1 = sampGetChatString(91)
     text2, prefix, color2, pcolor = sampGetChatString(92)
     text3, prefix1, color3, pcolor1 = sampGetChatString(93)
     text4, prefix, color4, pcolor = sampGetChatString(94)
     text5, prefix1, color5, pcolor1 = sampGetChatString(95)
     text6, prefix, color6, pcolor = sampGetChatString(96)
     text7, prefix1, color7, pcolor1 = sampGetChatString(97)
     text8, prefix, color8, pcolor = sampGetChatString(98)
     text9, prefix1, color9, pcolor1 = sampGetChatString(99)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text..'', mainIni.config.pos_x, mainIni.config.pos_y, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text1..'', mainIni.config.pos_x, mainIni.config.pos_y+20, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text2..'', mainIni.config.pos_x, mainIni.config.pos_y+40, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text3..'', mainIni.config.pos_x, mainIni.config.pos_y+60, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text4..'', mainIni.config.pos_x, mainIni.config.pos_y+80, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text5..'', mainIni.config.pos_x, mainIni.config.pos_y+100, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text6..'', mainIni.config.pos_x, mainIni.config.pos_y+120, color)
    end
    if healprocent.v == 8 then
    
     text, prefix, color, pcolor = sampGetChatString(90)
     text1, prefix1, color1, pcolor1 = sampGetChatString(91)
     text2, prefix, color2, pcolor = sampGetChatString(92)
     text3, prefix1, color3, pcolor1 = sampGetChatString(93)
     text4, prefix, color4, pcolor = sampGetChatString(94)
     text5, prefix1, color5, pcolor1 = sampGetChatString(95)
     text6, prefix, color6, pcolor = sampGetChatString(96)
     text7, prefix1, color7, pcolor1 = sampGetChatString(97)
     text8, prefix, color8, pcolor = sampGetChatString(98)
     text9, prefix1, color9, pcolor1 = sampGetChatString(99)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text..'', mainIni.config.pos_x, mainIni.config.pos_y, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text1..'', mainIni.config.pos_x, mainIni.config.pos_y+20, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text2..'', mainIni.config.pos_x, mainIni.config.pos_y+40, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text3..'', mainIni.config.pos_x, mainIni.config.pos_y+60, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text4..'', mainIni.config.pos_x, mainIni.config.pos_y+80, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text5..'', mainIni.config.pos_x, mainIni.config.pos_y+100, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text6..'', mainIni.config.pos_x, mainIni.config.pos_y+120, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text7..'', mainIni.config.pos_x, mainIni.config.pos_y+140, color)
    end
    if healprocent.v == 9 then
    
     text, prefix, color, pcolor = sampGetChatString(90)
     text1, prefix1, color1, pcolor1 = sampGetChatString(91)
     text2, prefix, color2, pcolor = sampGetChatString(92)
     text3, prefix1, color3, pcolor1 = sampGetChatString(93)
     text4, prefix, color4, pcolor = sampGetChatString(94)
     text5, prefix1, color5, pcolor1 = sampGetChatString(95)
     text6, prefix, color6, pcolor = sampGetChatString(96)
     text7, prefix1, color7, pcolor1 = sampGetChatString(97)
     text8, prefix, color8, pcolor = sampGetChatString(98)
     text9, prefix1, color9, pcolor1 = sampGetChatString(99)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text..'', mainIni.config.pos_x, mainIni.config.pos_y, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text1..'', mainIni.config.pos_x, mainIni.config.pos_y+20, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text3..'', mainIni.config.pos_x, mainIni.config.pos_y+40, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text4..'', mainIni.config.pos_x, mainIni.config.pos_y+60, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text5..'', mainIni.config.pos_x, mainIni.config.pos_y+80, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text6..'', mainIni.config.pos_x, mainIni.config.pos_y+100, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text7..'', mainIni.config.pos_x, mainIni.config.pos_y+120, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 3 * 3600)..text8..'', mainIni.config.pos_x, mainIni.config.pos_y+140, color)
    end
    if healprocent.v == 10 then
    
     text, prefix, color, pcolor = sampGetChatString(90)
     text1, prefix1, color1, pcolor1 = sampGetChatString(91)
     text2, prefix, color2, pcolor = sampGetChatString(92)
     text3, prefix1, color3, pcolor1 = sampGetChatString(93)
     text4, prefix, color4, pcolor = sampGetChatString(94)
     text5, prefix1, color5, pcolor1 = sampGetChatString(95)
     text6, prefix, color6, pcolor = sampGetChatString(96)
     text7, prefix1, color7, pcolor1 = sampGetChatString(97)
     text8, prefix, color8, pcolor = sampGetChatString(98)
     text9, prefix1, color9, pcolor1 = sampGetChatString(99)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 0 * 3600)..text..'', mainIni.config.pos_x, mainIni.config.pos_y, color)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 0 * 3600)..text1..'', mainIni.config.pos_x, mainIni.config.pos_y+20, color1)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 0 * 3600)..text2..'', mainIni.config.pos_x, mainIni.config.pos_y+40, color2)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 0 * 3600)..text3..'', mainIni.config.pos_x, mainIni.config.pos_y+60, color3)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 0 * 3600)..text4..'', mainIni.config.pos_x, mainIni.config.pos_y+80, color4)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 0 * 3600)..text5..'', mainIni.config.pos_x, mainIni.config.pos_y+100, color5)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 0 * 3600)..text6..'', mainIni.config.pos_x, mainIni.config.pos_y+120, color6)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 0 * 3600)..text7..'', mainIni.config.pos_x, mainIni.config.pos_y+140, color7)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 0 * 3600)..text8..'', mainIni.config.pos_x, mainIni.config.pos_y+160, color8)
     renderFontDrawText(font,os.date("[%H:%M] ", os.time(utc) + 0 * 3600)..text9..'', mainIni.config.pos_x, mainIni.config.pos_y+180, color9)
    end
+ еще возможность неограниченного количества строчек
4 строчки / 184 строчки
 
  • Нравится
Реакции: Vespan

8insm

Известный
169
33
Чат понравился, но можно ли как-то отредачить ini (там кроме позиции ничего нет) или как сохранять настройки. Надоедает каждый раз вводить название шрифтов
Непонятно зачем, если есть mimgui chat, и врядли ты не знал о нем...
откровенно сказать, MimChat = TheLupa 😌
 
Последнее редактирование: