- 2,139
- 1,776
Я когда отправляю текст через биндер свой,то каракули какието ._.
Lua:
script_name('Mini-Binder For Gold-Rp!')
script_author('Vespan')
script_version('v1')
require "lib.moonloader"
inicfg = require 'inicfg'
config = inicfg.load(nil, "Binder")
local teg = '{00FA9A}[Binder]: {FFFFFF}'
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
print('{00FF00}Успешно!')
sampAddChatMessage(teg ..'{00FF00}Успешно загрузился!', 0x00DD00)
sampAddChatMessage(teg .. 'Активация: {FF0000}1-9 + ALT{FFFFFF}(левый)', color)
wait(1000)
sampAddChatMessage(teg .. 'Можно поменять текст окрыв {FFAAFF}- moonloader > config > Binder.ini', 0x00DD00)
wait(500)
sampAddChatMessage(teg .. 'Автор скрипта {FF0000}Vespan , {00FFFF}Vk.Com/IdV3sp4n', 0x00DD00)
while true do
wait(0)
if isKeyJustPressed(VK_MENU) and isKeyDown(VK_1) then
sampProcessChatInput(config.Text.Bind1)
end
if isKeyJustPressed(VK_MENU) and isKeyDown(VK_2) then
sampProcessChatInput(config.Text.Bind2)
end
if isKeyJustPressed(VK_MENU) and isKeyDown(VK_3) then
sampProcessChatInput(config.Text.Bind3)
end
if isKeyJustPressed(VK_MENU) and isKeyDown(VK_4) then
sampProcessChatInput(config.Text.Bind4)
end
if isKeyJustPressed(VK_MENU) and isKeyDown(VK_5) then
sampProcessChatInput(config.Text.Bind5)
end
if isKeyJustPressed(VK_MENU) and isKeyDown(VK_6) then
sampProcessChatInput(config.Text.Bind6)
end
if isKeyJustPressed(VK_MENU) and isKeyDown(VK_7) then
sampProcessChatInput(config.Text.Bind7)
end
if isKeyJustPressed(VK_MENU) and isKeyDown(VK_8) then
sampProcessChatInput(config.Text.Bind8)
end
if isKeyJustPressed(VK_MENU) and isKeyDown(VK_9) then
sampProcessChatInput(config.Text.Bind9)
end
end
end