Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local samp = require 'samp.events'
- local imgui = require 'mimgui'
- local sampev = require("lib.samp.events")
- require "lib.moonloader"
- local inicfg = require "inicfg"
- local font = renderCreateFont("Arial", 9, 5) -- Font name, font size, font flag.
- local mainIni = inicfg.load({
- config = {
- autostoplesson = false,
- english = true
- }
- }, "SIHelper.ini")
- if not doesFileExist("moonloader/config/SIHelper.ini") then
- inicfg.save(mainIni, "SIHelper.ini")
- end
- local list = {
- 'Flying',
- 'Sailing',
- 'Fishing',
- 'Weapon',
- 'Materials',
- 'All'
- };
- local sw, sh = 355, 425
- local active = imgui.new.bool(false)
- local checkbox = imgui.new.bool(false)
- local ffi = require "ffi"
- local buf = imgui.new.char[24]()
- local font = renderCreateFont("Arial", 13, 5) -- Font name, font size, font flag.
- function main()
- while not isSampAvailable() do wait(0) end
- wait (2000)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage(" ", 0x00ff78)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Loaded. Made by {00ff78}21Cristi", 0x00ff78)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Version: {00ff78}1.5{FFFFFF} | Command list: {00ff78}/sih", 0x00ff78)
- sampRegisterChatCommand("sfsi", function() active[0] = not active[0] end)
- sampRegisterChatCommand("sih", function() active[1] = not active[1] end)
- sampRegisterChatCommand("short", function() active[2] = not active[2] end)
- sampRegisterChatCommand("fish1", fish1)
- sampRegisterChatCommand("dt", dt)
- sampRegisterChatCommand("cmc", cmc)
- sampRegisterChatCommand("fish2", fish2)
- sampRegisterChatCommand("fish3", fish3)
- sampRegisterChatCommand("fish4", fish4)
- sampRegisterChatCommand("tfly", flytest)
- sampRegisterChatCommand("lssail", lsboat)
- sampRegisterChatCommand("lvsail", lvboat)
- sampRegisterChatCommand("sfsail", sfboat)
- sampRegisterChatCommand("mats1", mats1)
- sampRegisterChatCommand("mats2", mats2)
- sampRegisterChatCommand("mats3", mats3)
- sampRegisterChatCommand("mats4", mats4)
- sampRegisterChatCommand("weap1", weap1)
- sampRegisterChatCommand("weap2", weap2)
- sampRegisterChatCommand("weap3", weap3)
- sampRegisterChatCommand("weap4", weap4)
- sampRegisterChatCommand("afvr", afvr)
- sampRegisterChatCommand("bg", bg)
- sampRegisterChatCommand("sa", sa)
- sampRegisterChatCommand("sc", sc)
- sampRegisterChatCommand("cf", cf)
- sampRegisterChatCommand("en", en)
- sampRegisterChatCommand("co", co)
- sampRegisterChatCommand("cmb", cmb)
- sampRegisterChatCommand("mb", mb)
- sampRegisterChatCommand("cx", cx)
- sampRegisterChatCommand("ct", ct)
- sampRegisterChatCommand("cdt", cdt)
- sampRegisterChatCommand("missm", missm)
- sampRegisterChatCommand("missc", missc)
- sampRegisterChatCommand("gj", gj)
- sampRegisterChatCommand("ha", ha)
- sampRegisterChatCommand('not', ntf)
- sampRegisterChatCommand("kc", kc)
- sampRegisterChatCommand("czs", czs)
- sampRegisterChatCommand("li", li)
- sampRegisterChatCommand("sj", sj)
- sampRegisterChatCommand("reall", reall)
- sampRegisterChatCommand("staxi", staxi)
- sampRegisterChatCommand("smech", smech)
- sampRegisterChatCommand("smedic", smedic)
- sampRegisterChatCommand("ctaxi", ctaxi)
- sampRegisterChatCommand("cmedic", cmedic)
- sampRegisterChatCommand("cmech", cmech)
- sampRegisterChatCommand("emer", emer)
- sampRegisterChatCommand("svc", svc)
- sampRegisterChatCommand("asl", function()
- mainIni.config.autostoplesson = not mainIni.config.autostoplesson
- inicfg.save(mainIni, "SIHelper.ini")
- sampAddChatMessage("{00ff78}[SFSI Helper]{FFFFFF} Auto Stoplesson: "..(mainIni.config.autostoplesson and "{00ff00}ON{ffffff}." or "{ff0000}OFF{ffffff}."), -1)
- end)
- sampRegisterChatCommand("lng", function()
- mainIni.config.english = not mainIni.config.english
- inicfg.save(mainIni, "SIHelper.ini")
- sampAddChatMessage(mainIni.config.english and "{00ff78}[SFSI Helper]{FFFFFF} Script's language was set as {33CCFF}English{ffffff}." or "{00ff78}[SFSI Helper]{FFFFFF} Limba scriptului a fost setata ca {33CCFF}Romana{ffffff}.")
- end)
- sampRegisterChatCommand("rl", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/requestlicenses %s", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /rl ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("all", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format(mainIni.config.english and "/f %s (%s) at me for all licenses." or "/f %s (%s) la mine pentru toate licentele.", sampGetPlayerNickname(id), id))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /all ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("acc", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/accept needlicense %s", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /acc ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand('gl', function(arg)
- if not arg:find('^(%d+)%s(%d)$') then sampAddChatMessage('{00ff78}[SFSI Helper] {FFFFFF}Syntax: /gl [ID] [1-5]', -1)
- sampAddChatMessage('{00ff78}[SFSI Helper] ID-uri licente: {FFFFFF} 1 - Flying | 2 - Sailing | 3 - Fishing | 4 - Weapon | 5 - Materials ', -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2) end
- local id, index = arg:match('^(%d+)%s(%d)$');
- if not list[tonumber(index)] then return end
- sampSendChat(('/givelicense %s %s'):format(id, list[tonumber(index)]));
- end);
- sampRegisterChatCommand('atme', function(arg)
- if not arg:find('^(%d+)%s(%d)$') then sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage('{00ff78}[SFSI Helper] {FFFFFF}Syntax: /atme [ID] [1-5]', -1)
- sampAddChatMessage(mainIni.config.english and '{00ff78}[SFSI Helper] License IDs: {FFFFFF} 1 - Flying | 2 - Sailing | 3 - Fishing | 4 - Weapon | 5 - Materials ' or '{00ff78}[SFSI Helper] ID-uri licente: {FFFFFF} 1 - Flying | 2 - Sailing | 3 - Fishing | 4 - Weapon | 5 - Materials ', -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2) end
- local id, index = arg:match('^(%d+)%s(%d)$');
- if not list[tonumber(index)] then return end
- sampSendChat((mainIni.config.english and '/f %s (%s) at me for %s License.' or '/f %s (%s) la mine pentru licenta de %s.'):format(sampGetPlayerNickname(id), id, list[tonumber(index)]));
- end)
- sampRegisterChatCommand("stfly", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/startlesson %s flying", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /stfly ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("stsail", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/startlesson %s sailing", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /stsail ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("tfail", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/stoplesson %s", sampGetPlayerNickname(id)))
- sampSendChat(string.format(mainIni.config.english and "Sadly, you failed the License test." or "Din pacate, ai picat testul de licenta.", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /tfail ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("stfish", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/startlesson %s fishing", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /stfish ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("stmats", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/startlesson %s materials", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /stmats ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("stweap", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/startlesson %s weapon", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /stweap ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("sl", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/stoplesson %s", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /sl ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("acr", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/accept repair %s", sampGetPlayerNickname(id)))
- sampSendChat(string.format("/accept refill %s", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /acr ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("rr", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format("/repair %s 1", sampGetPlayerNickname(id)))
- sampSendChat(string.format("/refill %s 1", sampGetPlayerNickname(id)))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /rr ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- sampRegisterChatCommand("accepted", function(id)
- if tonumber(id) ~= nil then
- if sampIsPlayerConnected(id) then
- sampSendChat(string.format(mainIni.config.english and "/sx Has someone accepted %s (%s) ?" or "/sx L-a acceptat cineva pe %s (%s) ?", sampGetPlayerNickname(id), id))
- end
- else
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Error: Arguments {ff0000}missing{ffffff}.", -1)
- sampAddChatMessage("{00ff78}[SFSI Helper] {FFFFFF}Syntax:{00ff78} /accepted ID", -1)
- printStyledString('~w~arguments ~r~missing..', 500, 2)
- end
- end)
- while true do wait(0)
- renderFontDrawText(font, "{00ff78}SFSI Helper {ffffff}v1.5", 1770, 1030, 0xFFFFFFFF)
- renderFontDrawText(font, mainIni.config.english and "{00ff78}Language: {33CCFF}EN" or "{00ff78}Language: {33CCFF}RO", 1793, 990, 0xFFFFFFFF)
- renderFontDrawText(font, mainIni.config.autostoplesson and "{00ff78}Auto Stoplesson: {00FF00}ON" or "{00ff78}Auto Stoplesson: {ff0000}OFF", 1724, 1010, 0xFFFFFFFF)
- end
- end
- imgui.OnInitialize(function()
- imgui.GetIO().IniFilename = nil
- light_blue_theme()
- end)
- local mainFrame = imgui.OnFrame(function() return active[0] end, function(self)
- local sw, sh = getScreenResolution()
- imgui.SetNextWindowSize(imgui.ImVec2(sw / 5.4, sh / 2.5), imgui.Cond.FirstUseEver)
- imgui.SetNextWindowPos(imgui.ImVec2(sw / 1.4, sh / 2), imgui.Cond.FirstUseEver, imgui.ImVec2(-0.3, 0.5))
- imgui.Begin('SFSI Helper - License tests menu LEVEL 1-49', active)
- if imgui.BeginTabBar('Tabs') then
- if imgui.BeginTabItem('Flying') then
- imgui.Text(mainIni.config.english and "Client's ID (connected on the server): Level: 1+" or 'ID-ul clientului (conectat pe server): Level: 1+')
- imgui.InputText("ID", buf, ffi.sizeof(buf), imgui.InputTextFlags.CharsDecimal)
- imgui.Text(mainIni.config.english and 'Ask on /sx if the client was accepted by someone else' or 'Intrebi pe /sx daca clientul a fost acceptat de altcineva')
- imgui.SetCursorPos(imgui.ImVec2(10, 115))
- if imgui.Button(mainIni.config.english and "Ask" or "Intreaba", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/sx Has someone accepted %s (%s) ?" or "/sx L-a acceptat cineva pe %s (%s) ?", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.Text(mainIni.config.english and 'Announce on /f client for Announce on /f client for' or 'Anunta pe /f client pentru Anunta pe /f client pentru')
- imgui.SetCursorPos(imgui.ImVec2(10, 160))
- if imgui.Button("Flying License", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/f %s (%s) at me for Flying License." or "/f %s (%s) la mine pentru licenta de Flying.", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(250, 160))
- if imgui.Button(mainIni.config.english and "All licenses" or "Toate licentele", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/f %s (%s) at me for all licenses." or "/f %s (%s) la mine pentru toate licentele.", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.Text(mainIni.config.english and 'Start a lesson with the client Tell the client to get back' or 'Incepe lectia cu clientul Spune-i clientului sa intoarca')
- imgui.SetCursorPos(imgui.ImVec2(10, 205))
- if imgui.Button("Startlesson", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/startlesson %s flying", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(250, 205))
- if imgui.Button(mainIni.config.english and "Get back" or "Intoarce", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "%s, you can get back." or "%s, poti sa intorci.", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Test instructions' or 'Instructiunile pentru test')
- imgui.SetCursorPos(imgui.ImVec2(10, 250))
- if imgui.Button(mainIni.config.english and "Instructions" or "Instructiuni", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "Drive the Maverick on any airport you want, then land on it." or "Condu Maverick-ul pe orice aeroport doresti, apoi aterizezi.")
- sampSendChat(mainIni.config.english and "Once you're there, get back up and get back from where we gone." or "Odata ajuns, reia zborul si intoarce-te de unde am plecat.")
- sampSendChat(mainIni.config.english and "If the Maverick's HP reaches 950.0, you failed. You can check it's HP with /dl" or "Daca Maverick-ul atinge sub 950.0HP, esti picat. Poti verifica cu /dl HP-ul.")
- end
- end
- imgui.Text(mainIni.config.english and 'Give the license to the client (if he passed the test)' or 'Acorda licenta clientului (in caz ca a trecut testul)')
- imgui.SetCursorPos(imgui.ImVec2(10, 295))
- if imgui.Button(mainIni.config.english and "Give" or "Acorda", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/givelicense %s flying", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Tell the client he failed the license test' or 'Anunti clientul ca a picat testul de licenta')
- imgui.SetCursorPos(imgui.ImVec2(10, 340))
- if imgui.Button(mainIni.config.english and "Failed" or "Picat", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "Sadly, you failed the Flying License test." or "Din pacate, ai picat testul pentru licenta de Flying.", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Stop the lesson with the client' or 'Opreste lectia cu clientul')
- imgui.SetCursorPos(imgui.ImVec2(10, 385))
- if imgui.Button("Stoplesson", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat("/stoplesson "..ffi.string(buf))
- end
- end
- imgui.Text(mainIni.config.english and '! Type /asl to automatically stop the lessons flying tab' or '! Scrie /asl pentru a opri automat lectiile flying tab')
- imgui.EndTabItem()
- end
- if imgui.BeginTabItem('Sailing') then
- imgui.Text(mainIni.config.english and "Client's ID (connected on the server): Level: 1+" or 'ID-ul clientului (conectat pe server): Level: 1+')
- imgui.InputText("ID", buf, ffi.sizeof(buf), imgui.InputTextFlags.CharsDecimal)
- imgui.Text(mainIni.config.english and 'Ask on /sx if the client was accepted by someone else' or 'Intrebi pe /sx daca clientul a fost acceptat de altcineva')
- imgui.SetCursorPos(imgui.ImVec2(10, 115))
- if imgui.Button(mainIni.config.english and "Ask" or "Intreaba", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/sx Has someone accepted %s (%s) ?" or "/sx L-a acceptat cineva pe %s (%s) ?", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.Text(mainIni.config.english and 'Announce on /f client for Announce on /f client for' or 'Anunta pe /f client pentru Anunta pe /f client pentru')
- imgui.SetCursorPos(imgui.ImVec2(10, 160))
- if imgui.Button("Sailing License", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/f %s (%s) at me for Sailing License." or "/f %s (%s) la mine pentru licenta de Sailing.", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(250, 160))
- if imgui.Button(mainIni.config.english and "All licenses" or "Toate licentele", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/f %s (%s) la mine pentru toate licentele.", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.Text(mainIni.config.english and 'Start a lesson with the client Tell the client to get back' or 'Incepe lectia cu clientul Spune-i clientului sa intoarca')
- imgui.SetCursorPos(imgui.ImVec2(10, 205))
- if imgui.Button("Startlesson", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/startlesson %s sailing", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(250, 205))
- if imgui.Button(mainIni.config.english and "Get back" or "Intoarce", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "%s, you can get back." or "%s, poti sa intorci.", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Test guides for client' or 'Ghidarile pentru test')
- imgui.SetCursorPos(imgui.ImVec2(10, 250))
- if imgui.Button("Sail LS", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "Drive the boat to the Beach LS Lighthouse, then get back." or "Condu barca pana la farul de pe plaja. Odata ajuns, te intorci inapoi.")
- sampSendChat(mainIni.config.english and "If the boat reaches below 950.0 HP, you failed. You can check it's HP by /dl command" or "Daca barca atinge sub 950.0 HP, esti picat. Poti verifica HP-ul cu comanda /dl")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(130, 250))
- if imgui.Button("Sail LV", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "Drive the boat to the old NG base (the ship next to SF Airport) then get back." or "Condu barca pana la fosta baza NG (vaporul de langa Aero SF). Odata ajuns, te intorci inapoi.")
- sampSendChat(mainIni.config.english and "If the boat reaches below 950.0 HP, you failed. You can check it's HP by /dl command" or "Daca barca atinge sub 950.0 HP, esti picat. Poti verifica HP-ul cu comanda /dl")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(250, 250))
- if imgui.Button("Sail SF", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "Drive the boat to the Bayside Docks. Once you're there, get back." or "Condu barca pana la docurile din Bayside. Odata ajuns, te intorci inapoi.")
- sampSendChat(mainIni.config.english and "If the boat reaches below 950.0 HP, you failed. You can check it's HP by /dl command" or "Daca barca atinge sub 950.0 HP, esti picat. Poti verifica HP-ul cu comanda /dl")
- end
- end
- imgui.Text(mainIni.config.english and 'Give the license to the client (if he passed the test)' or 'Acorda licenta clientului (in caz ca a trecut testul)')
- imgui.SetCursorPos(imgui.ImVec2(10, 295))
- if imgui.Button(mainIni.config.english and "Give" or "Acorda", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/givelicense %s sailing", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Tell the client he failed the license test' or 'Anunti clientul ca a picat testul de licenta')
- imgui.SetCursorPos(imgui.ImVec2(10, 340))
- if imgui.Button(mainIni.config.english and "Failed" or "Picat", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "Sadly, you failed the Sailing License test." or "Din pacate, ai picat testul pentru licenta de Sailing.", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Stop the lesson with the client' or 'Opreste lectia cu clientul')
- imgui.SetCursorPos(imgui.ImVec2(10, 385))
- if imgui.Button("Stoplesson", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat("/stoplesson "..ffi.string(buf))
- end
- end
- imgui.Text(mainIni.config.english and '! Type /asl to automatically stop the lessons sailing tab' or '! Scrie /asl pentru a opri automat lectiile sailing tab')
- imgui.EndTabItem()
- end
- if imgui.BeginTabItem('Fishing') then
- imgui.Text(mainIni.config.english and "Client's ID (connected on the server): Level: 1+" or 'ID-ul clientului (conectat pe server): Level: 1+')
- imgui.InputText("ID", buf, ffi.sizeof(buf), imgui.InputTextFlags.CharsDecimal)
- imgui.Text(mainIni.config.english and 'Ask on /sx if the client was accepted by someone else' or 'Intrebi pe /sx daca clientul a fost acceptat de altcineva')
- imgui.SetCursorPos(imgui.ImVec2(10, 115))
- if imgui.Button(mainIni.config.english and "Ask" or "Intreaba", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/sx Has someone accepted %s (%s) ?" or "/sx L-a acceptat cineva pe %s (%s) ?", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.Text(mainIni.config.english and 'Announce on /f client for Announce on /f client for' or 'Anunta pe /f client pentru Anunta pe /f client pentru')
- imgui.SetCursorPos(imgui.ImVec2(10, 160))
- if imgui.Button("Fishing License", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(english and "/f %s (%s) at me for Flying License." or "/f %s (%s) la mine pentru licenta de Fishing.", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(250, 160))
- if imgui.Button(mainIni.config.english and "All licenses" or "Toate licentele", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/f %s (%s) la mine pentru toate licentele.", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.Text(mainIni.config.english and 'Start a lesson with the client' or 'Incepe lectia cu clientul')
- imgui.SetCursorPos(imgui.ImVec2(10, 205))
- if imgui.Button("Startlesson", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/startlesson %s fishing", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Questions set for license test' or 'Setul de intrebari pentru test')
- imgui.SetCursorPos(imgui.ImVec2(10, 250))
- if imgui.Button(mainIni.config.english and "Question 1" or "Intrebarea 1", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw What's the command for fishing?" or "/cw Cu ce comanda pescuiesti?")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(95, 250))
- if imgui.Button(mainIni.config.english and "Question 2" or "Intrebarea 2", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw Where do you fish?" or "/cw Unde pescuiesti?")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(180, 250))
- if imgui.Button(mainIni.config.english and "Question 3" or "Intrebarea 3", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw Where do you get the caught fish?" or "/cw Unde duci pestele prins?")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(265, 250))
- if imgui.Button(mainIni.config.english and "Question 4" or "Intrebarea 4", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw What do you receive if you fish without license?" or "/cw Ce primesti daca pescuiesti fara licenta?")
- end
- end
- imgui.Text(mainIni.config.english and 'Give the license to the client (if he passed the test)' or 'Acorda licenta clientului (in caz ca a trecut testul)')
- imgui.SetCursorPos(imgui.ImVec2(10, 295))
- if imgui.Button(mainIni.config.english and "Give" or "Acorda", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/givelicense %s fishing", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Tell the client he failed the license test' or 'Anunti clientul ca a picat testul de licenta')
- imgui.SetCursorPos(imgui.ImVec2(10, 340))
- if imgui.Button(mainIni.config.english and "Failed" or "Picat", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "Sadly, you failed the Fishing License test." or "Din pacate, ai picat testul pentru licenta de Fishing.", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Stop the lesson with the client' or 'Opreste lectia cu clientul')
- imgui.SetCursorPos(imgui.ImVec2(10, 385))
- if imgui.Button("Stoplesson", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat("/stoplesson "..ffi.string(buf))
- end
- end
- imgui.Text(mainIni.config.english and '! Type /asl to automatically stop the lessons fishing tab' or '! Scrie /asl pentru a opri automat lectiile fishing tab')
- imgui.EndTabItem()
- end
- if imgui.BeginTabItem('Weapon') then
- imgui.Text(mainIni.config.english and "Client's ID (connected on the server): Level: 5+" or 'ID-ul clientului (conectat pe server): Level: 5+')
- imgui.InputText("ID", buf, ffi.sizeof(buf), imgui.InputTextFlags.CharsDecimal)
- imgui.Text(mainIni.config.english and 'Ask on /sx if the client was accepted by someone else' or 'Intrebi pe /sx daca clientul a fost acceptat de altcineva')
- imgui.SetCursorPos(imgui.ImVec2(10, 115))
- if imgui.Button(mainIni.config.english and "Ask" or "Intreaba", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/sx Has someone accepted %s (%s) ?" or "/sx L-a acceptat cineva pe %s (%s) ?", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.Text(mainIni.config.english and 'Announce on /f client for Announce on /f client for' or 'Anunta pe /f client pentru Anunta pe /f client pentru')
- imgui.SetCursorPos(imgui.ImVec2(10, 160))
- if imgui.Button("Weapon License", imgui.ImVec2(105, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/f %s (%s) at me for Weapon License." or "/f %s (%s) la mine pentru licenta de Weapon.", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(250, 160))
- if imgui.Button(mainIni.config.english and "All licenses" or "Toate licentele", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/f %s (%s) at me for all licenses." or "/f %s (%s) la mine pentru toate licentele.", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.Text(mainIni.config.english and 'Start a lesson with the client' or 'Incepe lectia cu clientul')
- imgui.SetCursorPos(imgui.ImVec2(10, 205))
- if imgui.Button("Startlesson", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/startlesson %s weapon", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Questions set for license test' or 'Setul de intrebari pentru test')
- imgui.SetCursorPos(imgui.ImVec2(10, 250))
- if imgui.Button(mainIni.config.english and "Question 1" or "Intrebarea 1", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw Tell me 10 illegal fire guns from GTA San Andreas." or "/cw Enumera-mi 10 arme ilegale cu foc din GTA San Andreas.")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(95, 250))
- if imgui.Button(mainIni.config.english and "Question 2" or "Intrebarea 2", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw Tell me 8 safezones." or "/cw Enumera-mi 8 safezone-uri.")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(180, 250))
- if imgui.Button(mainIni.config.english and "Question 3" or "Intrebarea 3", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw What is forbidden to do in these zones?" or "/cw Ce este interzis sa faci in aceste zone?")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(265, 250))
- if imgui.Button(mainIni.config.english and "Question 4" or "Intrebarea 4", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw Tell me the syntax of buying a gun." or "/cw Spune-mi sintaxa cu care cumperi o arma.")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(999, 250))
- if imgui.Button("Intrebarea 4", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat("/cw Spune-mi sintaxa cu care cumperi o arma.")
- end
- end
- imgui.Text(mainIni.config.english and 'Give the license to the client (if he passed the test)' or 'Acorda licenta clientului (in caz ca a trecut testul)')
- imgui.SetCursorPos(imgui.ImVec2(10, 295))
- if imgui.Button(mainIni.config.english and "Give" or "Acorda", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/givelicense %s weapon", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Tell the client he failed the license test' or 'Anunti clientul ca a picat testul de licenta')
- imgui.SetCursorPos(imgui.ImVec2(10, 340))
- if imgui.Button(mainIni.config.english and "Failed" or "Picat", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "Sadly, you failed the Weapon License test." or "Din pacate, ai picat testul pentru licenta de Weapon.", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Stop the lesson with the client' or 'Opreste lectia cu clientul')
- imgui.SetCursorPos(imgui.ImVec2(10, 385))
- if imgui.Button("Stoplesson", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat("/stoplesson "..ffi.string(buf))
- end
- end
- imgui.Text(mainIni.config.english and '! Type /asl to automatically stop the lessons weapon tab' or '! Scrie /asl pentru a opri automat lectiile weapon tab')
- imgui.EndTabItem()
- end
- if imgui.BeginTabItem('Materials') then
- imgui.Text(mainIni.config.english and "Client's ID (connected on the server): Level: 5+" or 'ID-ul clientului (conectat pe server): Level: 5+')
- imgui.InputText("ID", buf, ffi.sizeof(buf), imgui.InputTextFlags.CharsDecimal)
- imgui.Text(mainIni.config.english and 'Ask on /sx if the client was accepted by someone else' or 'Intrebi pe /sx daca clientul a fost acceptat de altcineva')
- imgui.SetCursorPos(imgui.ImVec2(10, 115))
- if imgui.Button("Intreaba", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/sx Has someone accepted %s (%s) ?" or "/sx L-a acceptat cineva pe %s (%s) ?", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.Text(mainIni.config.english and 'Announce on /f client for Announce on /f client for' or 'Anunta pe /f client pentru Anunta pe /f client pentru')
- imgui.SetCursorPos(imgui.ImVec2(10, 160))
- if imgui.Button("Materials License", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/f %s (%s) at me for Materials License." or "/f %s (%s) la mine pentru licenta de Materials.", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(250, 160))
- if imgui.Button(mainIni.config.english and "All licenses" or "Toate licentele", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "/f %s (%s) at me for all licenses." or "/f %s (%s) la mine pentru toate licentele.", sampGetPlayerNickname(ffi.string(buf)), ffi.string(buf)))
- end
- end
- imgui.Text(mainIni.config.english and 'Start a lesson with the client' or 'Incepe lectia cu clientul')
- imgui.SetCursorPos(imgui.ImVec2(10, 205))
- if imgui.Button("Startlesson", imgui.ImVec2(95, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/startlesson %s materials", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Questions set for license test' or 'Setul de intrebari pentru test')
- imgui.SetCursorPos(imgui.ImVec2(10, 250))
- if imgui.Button(mainIni.config.english and "Question 1" or "Intrebarea 1", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw What command do you use for buying materials?" or "/cw Cu ce comanda cumperi materiale?")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(95, 250))
- if imgui.Button(mainIni.config.english and "Question 2" or "Intrebarea 2", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw Where are you not allowed to sell guns?" or "/cw Unde nu ai voie sa vinzi arme?")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(180, 250))
- if imgui.Button(mainIni.config.english and "Question 3" or "Intrebarea 3", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw Tell me 5 safezones." or "/cw Enumera-mi 5 safezone-uri.")
- end
- end
- imgui.SetCursorPos(imgui.ImVec2(265, 250))
- if imgui.Button(mainIni.config.english and "Question 4" or "Intrebarea 4", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(mainIni.config.english and "/cw What command do you use for selling a gun?" or "/cw Cu ce comanda vinzi o arma?")
- end
- end
- imgui.Text(mainIni.config.english and 'Give the license to the client (if he passed the test)' or 'Acorda licenta clientului (in caz ca a trecut testul)')
- imgui.SetCursorPos(imgui.ImVec2(10, 295))
- if imgui.Button(mainIni.config.english and "Give" or "Acorda", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format("/givelicense %s materials", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Tell the client he failed the license test' or 'Anunti clientul ca a picat testul de licenta')
- imgui.SetCursorPos(imgui.ImVec2(10, 340))
- if imgui.Button(mainIni.config.english and "Failed" or "Picat", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat(string.format(mainIni.config.english and "Sadly, you failed the Materials License test." or "Din pacate, ai picat testul pentru licenta de Materials.", sampGetPlayerNickname(ffi.string(buf))))
- end
- end
- imgui.Text(mainIni.config.english and 'Stop the lesson with the client' or 'Opreste lectia cu clientul')
- imgui.SetCursorPos(imgui.ImVec2(10, 385))
- if imgui.Button("Stoplesson", imgui.ImVec2(80, 23)) then
- if ffi.string(buf) ~= "" then
- sampSendChat("/stoplesson "..ffi.string(buf))
- end
- end
- imgui.Text(mainIni.config.english and '! Type /asl to automatically stop the lessons materials tab' or '! Scrie /asl pentru a opri automat lectiile materials tab')
- imgui.EndTabItem()
- end
- if imgui.BeginTabItem('Settings') then
- imgui.Text(mainIni.config.english and "Script's language:" or 'Limba scriptului:')
- if imgui.Button(mainIni.config.english and "English" or "Romana") then
- mainIni.config.english = not mainIni.config.english
- sampAddChatMessage(mainIni.config.english and "{00ff78}[SFSI Helper]{FFFFFF} Script's language was set as {33CCFF}English{ffffff}." or "{00ff78}[SFSI Helper]{FFFFFF} Limba scriptului a fost setata ca {33CCFF}Romana{ffffff}.")
- inicfg.save(mainIni, "SIHelper.ini")
- end
- imgui.Text(mainIni.config.autostoplesson and "Auto Stoplesson:" or 'Auto Stoplesson:')
- if imgui.Button(mainIni.config.autostoplesson and "ON" or "OFF") then
- mainIni.config.autostoplesson = not mainIni.config.autostoplesson
- sampAddChatMessage("{00ff78}[SFSI Helper]{FFFFFF} Auto Stoplesson: "..(mainIni.config.autostoplesson and "{00ff00}ON{ffffff}." or "{ff0000}OFF{ffffff}."), -1)
- inicfg.save(mainIni, "SIHelper.ini")
- end
- imgui.EndTabItem()
- end
- imgui.EndTabBar()
- end
- imgui.End()
- end)
- local mainFrame = imgui.OnFrame(function() return active[1] end, function(self)
- local sw, sh = getScreenResolution()
- imgui.SetNextWindowSize(imgui.ImVec2(sw / 4.5, sh / 2.4), imgui.Cond.FirstUseEver)
- imgui.SetNextWindowPos(imgui.ImVec2(sw / 3.0, sh / 1.9), imgui.Cond.FirstUseEver, imgui.ImVec2(-0.3, 0.5))
- imgui.Begin('SFSI Helper - Commands list by 21Cristi', active)
- imgui.Text(mainIni.config.english and '/sfsi - Show the license test menu.' or '/sfsi - Afiseaza meniul pentru testele de licente.')
- imgui.Text(mainIni.config.english and '/dt - Get on duty. (/duty shortcut)' or '/dt - Te pui la datorie. (prescurtare /duty)')
- imgui.Text(mainIni.config.english and '/acc (ID) - ask the player to show his licenses.' or '/acc (ID) - accepti o cerere de licente a unui jucator.')
- imgui.Text(mainIni.config.english and '/accepted (ID) - Ask on /sx if someone accepted the client.' or '/accepted (ID) - Intrebi pe /sx daca a preluat cineva dinaintea ta clientul.')
- imgui.Text(mainIni.config.english and '/atme (ID) [1-5] - Announce on /f a client to you for a license.' or '/atme (ID) [1-5] - Anunti pe /f client la tine pentru o anume licenta.')
- imgui.Text(mainIni.config.english and '/all (ID) - Announce on /f a client for all licenses.' or '/all (ID) - Anunti pe /f client la tine pentru toate licentele.')
- imgui.Text(mainIni.config.english and '/asl - Toggle Auto Stoplesson feature.' or '/asl - Pornesti / Opresti functia Auto Stoplesson.')
- imgui.Text(mainIni.config.english and '/lng - Change the script language.' or '/lng - Schimba limba scriptului.')
- imgui.Text(mainIni.config.english and '/gl (ID) [1-5] - Give the player a license.' or '/gl (ID) [1-5] - Ii oferi unui jucator o licenta.')
- imgui.Text(mainIni.config.english and '/st(fly/sail/fish/weap/mats) (ID) - start a lesson with a player.' or '/st(fly/sail/fish/weap/mats) (ID) - incepi o lectie cu un jucator.')
- imgui.Text(mainIni.config.english and '/sl (ID) - stop a lesson with a player.' or '/sl (ID) - incetezi o lectie cu un jucator.')
- imgui.Text(mainIni.config.english and '/tfail (ID) - tell the client that he failed the test.' or '/tfail (ID) - anunti un jucator ca a picat testul si opreste lectia.')
- imgui.Text(mainIni.config.english and '/tfly - Informations about Flying License.' or '/tfly - Informatii legate de licenta de Flying.')
- imgui.Text(mainIni.config.english and '/lssail - Sailing LS test info.' or '/lssail - Informatii test Sailing LS.')
- imgui.Text(mainIni.config.english and '/lvsail - Sailing LV test info.' or '/lvsail - Informatii test Sailing LV.')
- imgui.Text(mainIni.config.english and '/sfsail - Sailing SF test info.' or '/sfsail - Informatii test Sailing SF.')
- imgui.Text(mainIni.config.english and '/fish(1-4) - Fishing License questions.' or '/fish(1-4) - Intrebarile pentru testul de licenta Fishing.')
- imgui.Text(mainIni.config.english and '/weap(1-4) - Weapon License questions.' or '/weap(1-4) - Intrebarile pentru testul de licenta Weapon.')
- imgui.Text(mainIni.config.english and '/mats(1-4) - Materials License questions.' or '/mats(1-4) - Intrebarile pentru testul de licenta Materials.')
- imgui.Text(mainIni.config.english and '/short - Show a dialog with the shortened commands on the server.' or '/short - Afisezi un dialog cu comenzile prescurtate de pe server.')
- imgui.Text(' ')
- imgui.Text(' SFSI Helper - current version: v1.5')
- imgui.Text(' made by 21Cristi')
- imgui.Text(' contact: Cristi#1098')
- imgui.SetCursorPos(imgui.ImVec2(40, 415))
- if imgui.Button(mainIni.config.english and "Close" or "Inchide", imgui.ImVec2(80, 23)) then
- sampProcessChatInput("/sih")
- end
- imgui.SetCursorPos(imgui.ImVec2(130, 415))
- if imgui.Button("Short commands", imgui.ImVec2(105, 23)) then
- sampProcessChatInput("/short")
- sampProcessChatInput("/sih")
- end
- imgui.SetCursorPos(imgui.ImVec2(245, 415))
- if imgui.Button("SFSI License Tests", imgui.ImVec2(130, 23)) then
- sampProcessChatInput("/sfsi")
- sampProcessChatInput("/sih")
- end
- imgui.End()
- end)
- local mainFrame = imgui.OnFrame(function() return active[2] end, function(self)
- local sw, sh = getScreenResolution()
- imgui.SetNextWindowSize(imgui.ImVec2(sw / 7, sh / 1.8), imgui.Cond.FirstUseEver)
- imgui.SetNextWindowPos(imgui.ImVec2(sw / 2.5, sh / 2.1), imgui.Cond.FirstUseEver, imgui.ImVec2(-0.3, 0.5))
- imgui.Begin(mainIni.config.english and 'SFSI Helper - Shortened commands' or 'SFSI Helper - Comenzi prescurtate', active)
- imgui.Text(mainIni.config.english and '/cmc - Clear your chat' or '/cmc - Stergi chat-ul.')
- imgui.Text(mainIni.config.english and '/bg /buygun deagle/m4 with 100/200 bullets.' or '/bg - /buygun deagle/m4 cu 100/200 gloante.')
- imgui.Text('/sa - /stopanim')
- imgui.Text('/sc - /spawnchange')
- imgui.Text('/cf - /cancel find')
- imgui.Text('/en - /engine')
- imgui.Text('/co - /costumes')
- imgui.Text('/mb - /members')
- imgui.Text('/cmb - /clanmembers')
- imgui.Text('/cxp - /clanxp')
- imgui.Text('/ct - /clanturfs')
- imgui.Text('/missm - /missed messages')
- imgui.Text('/missc - /missed calls')
- imgui.Text('/gj - /getjob')
- imgui.Text('/ha - /heal')
- imgui.Text('/not - /notifications')
- imgui.Text('/kc - /killcp')
- imgui.Text('/czs - /clanzones')
- imgui.Text('/li - /lights')
- imgui.Text('/sj - /switchjob | /swapjob')
- imgui.Text('/reall - /repair & /refill (Skill 5 Mechanic)')
- imgui.Text('/staxi - /service taxi')
- imgui.Text('/smedic - /service medic')
- imgui.Text('/smech - /service mechanic')
- imgui.Text('/ctaxi - /cancel taxi')
- imgui.Text('/cmedic - /cancel medic')
- imgui.Text('/cmech - /cancel mechanic')
- imgui.Text('/emer - /emergency')
- imgui.Text('/cdt - /clanduty')
- imgui.Text('/svc - /service calls')
- imgui.Text(mainIni.config.english and '/rr (ID) - repair/refill to someone for 1$' or '/rr (ID) - repair / refill cuiva pe 1$')
- imgui.Text(mainIni.config.english and '/acr (ID) - /accept repair/refill from someone' or '/acr (ID) - /accept repair/refill de la cineva')
- imgui.SetCursorPos(imgui.ImVec2(85, 555))
- if imgui.Button("Inchide", imgui.ImVec2(90, 33)) then
- sampProcessChatInput("/short")
- end
- imgui.End()
- end)
- function light_blue_theme()
- imgui.SwitchContext()
- local style = imgui.GetStyle()
- local colors = style.Colors
- local clr = imgui.Col
- local ImVec4 = imgui.ImVec4
- imgui.GetStyle().WindowPadding = imgui.ImVec2(5, 5)
- imgui.GetStyle().FramePadding = imgui.ImVec2(5, 5)
- imgui.GetStyle().ItemSpacing = imgui.ImVec2(3, 2)
- imgui.GetStyle().ItemInnerSpacing = imgui.ImVec2(2, 2)
- imgui.GetStyle().TouchExtraPadding = imgui.ImVec2(0, 0)
- imgui.GetStyle().IndentSpacing = 0
- imgui.GetStyle().ScrollbarSize = 10
- imgui.GetStyle().GrabMinSize = 10
- --==[ BORDER ]==--
- imgui.GetStyle().WindowBorderSize = 1
- imgui.GetStyle().ChildBorderSize = 1
- imgui.GetStyle().PopupBorderSize = 1
- imgui.GetStyle().FrameBorderSize = 1
- imgui.GetStyle().TabBorderSize = 1
- --==[ ROUNDING ]==--
- imgui.GetStyle().WindowRounding = 8
- imgui.GetStyle().ChildRounding = 8
- imgui.GetStyle().FrameRounding = 8
- imgui.GetStyle().PopupRounding = 8
- imgui.GetStyle().ScrollbarRounding = 8
- imgui.GetStyle().GrabRounding = 8
- imgui.GetStyle().TabRounding = 8
- colors[clr.FrameBg] = ImVec4(0.16, 0.48, 0.42, 0.54)
- colors[clr.FrameBgHovered] = ImVec4(0.26, 0.98, 0.85, 0.40)
- colors[clr.FrameBgActive] = ImVec4(0.26, 0.98, 0.85, 0.67)
- colors[clr.TitleBg] = ImVec4(0.04, 0.04, 0.04, 1.00)
- colors[clr.TitleBgActive] = ImVec4(0.06, 0.88, 0.35, 0.50)
- colors[clr.TitleBgCollapsed] = ImVec4(0.00, 0.00, 0.00, 0.51)
- colors[clr.CheckMark] = ImVec4(0.26, 0.98, 0.85, 1.00)
- colors[clr.SliderGrab] = ImVec4(0.24, 0.88, 0.77, 1.00)
- colors[clr.SliderGrabActive] = ImVec4(0.26, 0.98, 0.85, 1.00)
- colors[clr.Button] = ImVec4(0.16, 0.88, 0.55, 0.50)
- colors[clr.ButtonHovered] = ImVec4(0.16, 0.78, 0.55, 0.20)
- colors[clr.ButtonActive] = ImVec4(0.06, 0.98, 0.82, 1.00)
- colors[clr.Header] = ImVec4(0.26, 0.98, 0.85, 0.31)
- colors[clr.HeaderHovered] = ImVec4(0.26, 0.98, 0.85, 0.80)
- colors[clr.HeaderActive] = ImVec4(0.26, 0.98, 0.85, 1.00)
- colors[clr.Separator] = colors[clr.Border]
- colors[clr.SeparatorHovered] = ImVec4(0.10, 0.75, 0.63, 0.78)
- colors[clr.SeparatorActive] = ImVec4(2.10, 0.75, 0.63, 1.00)
- colors[clr.ResizeGrip] = ImVec4(0.26, 0.98, 0.85, 0.25)
- colors[clr.ResizeGripHovered] = ImVec4(0.26, 0.98, 0.85, 0.67)
- colors[clr.ResizeGripActive] = ImVec4(0.26, 0.98, 0.85, 0.95)
- colors[clr.PlotLines] = ImVec4(0.61, 0.61, 0.61, 1.00)
- colors[clr.PlotLinesHovered] = ImVec4(1.00, 0.81, 0.35, 1.00)
- colors[clr.TextSelectedBg] = ImVec4(0.26, 0.98, 0.85, 0.35)
- colors[clr.Text] = ImVec4(1.00, 1.00, 1.00, 1.00)
- colors[clr.TextDisabled] = ImVec4(0.50, 0.50, 0.50, 1.00)
- colors[clr.WindowBg] = ImVec4(0.06, 0.06, 0.06, 0.94)
- colors[clr.ChildBg] = ImVec4(1.00, 1.00, 1.00, 0.00)
- colors[clr.PopupBg] = ImVec4(0.08, 0.08, 0.08, 0.94)
- colors[clr.Border] = ImVec4(0.43, 0.43, 0.50, 0.50)
- colors[clr.BorderShadow] = ImVec4(0.00, 0.00, 0.00, 0.00)
- colors[clr.MenuBarBg] = ImVec4(0.14, 0.14, 0.14, 1.00)
- colors[clr.ScrollbarBg] = ImVec4(0.02, 0.02, 0.02, 0.53)
- colors[clr.ScrollbarGrab] = ImVec4(0.31, 0.31, 0.31, 1.00)
- colors[clr.ScrollbarGrabHovered] = ImVec4(0.41, 0.41, 0.41, 1.00)
- colors[clr.ScrollbarGrabActive] = ImVec4(0.51, 0.51, 0.51, 1.00)
- colors[clr.PlotHistogram] = ImVec4(0.90, 0.70, 0.00, 1.00)
- colors[clr.PlotHistogramHovered] = ImVec4(1.00, 0.60, 0.00, 1.00)
- end
- function sampev.onServerMessage(color, text)
- if mainIni.config.autostoplesson then
- if text:find("%* You gave a Flying License to (.+)") then
- lua_thread.create(function() wait(50)
- local name = text:match("%* You gave a Flying License to (.+)")
- sampSendChat("/stoplesson "..name)
- end)
- end
- if text:find("%* You gave a Sailing License to (.+)") then
- lua_thread.create(function() wait(50)
- local name = text:match("%* You gave a Sailing License to (.+)")
- sampSendChat("/stoplesson "..name)
- end)
- end
- if text:find("%* You gave a Fishing License to (.+)") then
- lua_thread.create(function() wait(50)
- local name = text:match("%* You gave a Fishing License to (.+)")
- sampSendChat("/stoplesson "..name)
- end)
- end
- if text:find("%* You gave a Weapon License to (.+)") then
- lua_thread.create(function() wait(50)
- local name = text:match("%* You gave a Weapon License to (.+)")
- sampSendChat("/stoplesson "..name)
- end)
- end
- if text:find("%* You gave a Materials License to (.+)") then
- lua_thread.create(function() wait(50)
- local name = text:match("%* You gave a Materials License to (.+)")
- sampSendChat("/stoplesson "..name)
- end)
- end
- if text:find("%* I%-ai acordat Licenta de navigatie lui (.+)") then
- lua_thread.create(function() wait(50)
- local name = text:match("%* I%-ai acordat Licenta de navigatie lui (.+)")
- sampSendChat("/stoplesson "..name)
- end)
- end
- if text:find("%* I%-ai acordat Licenta de pilot lui (.+)") then
- lua_thread.create(function() wait(50)
- local name = text:match("%* I%-ai acordat Licenta de pilot lui (.+)")
- sampSendChat("/stoplesson "..name)
- end)
- end
- if text:find("%* I%-ai acordat Licenta de pescar lui (.+)") then
- lua_thread.create(function() wait(50)
- local name = text:match("%* I%-ai acordat Licenta de pescar lui (.+)")
- sampSendChat("/stoplesson "..name)
- end)
- end
- if text:find("%* I%-ai acordat Licenta de materiale lui (.+)") then
- lua_thread.create(function() wait(50)
- local name = text:match("%* I%-ai acordat Licenta de materiale lui (.+)")
- sampSendChat("/stoplesson "..name)
- end)
- end
- if text:find("%* I%-ai acordat Permisul de port%-arma lui (.+)") then
- lua_thread.create(function() wait(50)
- local name = text:match("%* I%-ai acordat Permisul de port%-arma lui (.+)")
- sampSendChat("/stoplesson "..name)
- end)
- end
- end
- end
- function sampev.onSendCommand(command)
- if command:find("accepted %d+") then
- local Id = command:match("accepted (%d+)")
- sampSendChat((mainIni.config.english and "/sx Has someone accepted %s (%s) ?" or "/sx L-a acceptat cineva pe %s (%s) ?"):format(sampGetPlayerNickname(Id), Id))
- end
- if command:find("aepjaeajfpjpeo %d+") then
- local Id = command:match("aepjaeajfpjpeo (%d+)")
- sampSendChat((" %s (%s) former command."):format(sampGetPlayerNickname(Id), Id))
- end
- end
- function fish1()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw What command do you use for fishing?" or "/cw Cu ce comanda pescuiesti?")
- end)
- end
- function fish2()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw Where do you fish?" or "/cw Unde pescuiesti?")
- end)
- end
- function fish3()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw Where do you take the caught fish?" or "/cw Unde duci pestele prins?")
- end)
- end
- function fish1()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw What command do you use for fishing?" or "/cw Cu ce comanda pescuiesti?")
- end)
- end
- function fish4()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw What do you get if you fish without license?" or "/cw Ce primesti daca pescuiesti fara licenta?")
- end)
- end
- function tfly()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "Drive the Maverick on any airport you want, then land on it." or "Condu Maverick-ul pe orice aeroport doresti, apoi aterizezi.")
- sampSendChat(mainIni.config.english and "Once you're there, get back up and get back from where we gone." or "Odata ajuns, reia zborul si intoarce-te de unde am plecat.")
- sampSendChat(mainIni.config.english and "If the Maverick's HP reaches 950.0, you failed. You can check it's HP with /dl" or "Daca Maverick-ul atinge sub 950.0HP, esti picat. Poti verifica cu /dl HP-ul.")
- end)
- end
- function lssail()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "Drive the boat to the Beach LS Lighthouse, then get back." or "Condu barca pana la farul de pe plaja. Odata ajuns, te intorci inapoi.")
- sampSendChat(mainIni.config.english and "If the boat reaches below 950.0 HP, you failed. You can check it's HP by /dl command" or "Daca barca atinge sub 950.0 HP, esti picat. Poti verifica HP-ul cu comanda /dl")
- end)
- end
- function lvsail()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "Drive the boat to the old NG base (the ship next to SF Airport) then get back." or "Condu barca pana la fosta baza NG (vaporul de langa Aero SF). Odata ajuns, te intorci inapoi.")
- sampSendChat(mainIni.config.english and "If the boat reaches below 950.0 HP, you failed. You can check it's HP by /dl command" or "Daca barca atinge sub 950.0 HP, esti picat. Poti verifica HP-ul cu comanda /dl")
- end)
- end
- function sfsail()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "Drive the boat to the Bayside Docks. Once you're there, get back." or "Condu barca pana la docurile din Bayside. Odata ajuns, te intorci inapoi.")
- sampSendChat(mainIni.config.english and "If the boat reaches below 950.0 HP, you failed. You can check it's HP by /dl command" or "Daca barca atinge sub 950.0 HP, esti picat. Poti verifica HP-ul cu comanda /dl")
- end)
- end
- function weap1()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw Tell me 10 fire guns from GTA San Andreas." or "/cw Enumera-mi 10 arme ilegale cu foc din GTA San Andreas.")
- end)
- end
- function weap2()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw Tell me 8 safezones." or "/cw Enumera-mi 8 safezone-uri.")
- end)
- end
- function weap3()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw What is forbidden to do in these zones?" or "/cw Ce este interzis sa faci in aceste zone?")
- end)
- end
- function weap4()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw Tell me the syntax you use for buying a gun." or "/cw Spune-mi sintaxa cu care cumperi o arma.")
- end)
- end
- function mats1()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw What command do you use for buying materials?" or "/cw Cu ce comanda cumperi materiale?")
- end)
- end
- function mats2()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw Where are you not allowed to sell guns?" or "/cw Unde nu ai voie sa vinzi arme? ")
- end)
- end
- function mats3()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw Tell me 5 safezones." or "/cw Enumera-mi 5 safezone-uri.")
- end)
- end
- function mats4()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/cw What command do you use for selling a gun?" or "/cw Cu ce comanda vinzi o arma?")
- end)
- end
- function dt()
- lua_thread.create(function()
- sampSendChat("/duty")
- end)
- end
- function bg()
- lua_thread.create(function()
- sampSendChat("/buygun deagle 100")
- sampSendChat("/buygun m4 200")
- sampSendChat("/buygun rifle 100")
- end)
- end
- function sa()
- lua_thread.create(function()
- sampSendChat("/stopanim")
- end)
- end
- function sc()
- lua_thread.create(function()
- sampSendChat("/spawnchange")
- end)
- end
- function cf()
- lua_thread.create(function()
- sampSendChat("/cancel find")
- end)
- end
- function en()
- lua_thread.create(function()
- sampSendChat("/engine")
- end)
- end
- function co()
- lua_thread.create(function()
- sampSendChat("/costumes")
- end)
- end
- function cmb()
- lua_thread.create(function()
- sampSendChat("/clanmembers")
- end)
- end
- function mb()
- lua_thread.create(function()
- sampSendChat("/members")
- end)
- end
- function cx()
- lua_thread.create(function()
- sampSendChat("/clanxp")
- end)
- end
- function ct()
- lua_thread.create(function()
- sampSendChat("/clanturfs")
- end)
- end
- function cdt()
- lua_thread.create(function()
- sampSendChat("/clanduty")
- end)
- end
- function missm()
- lua_thread.create(function()
- sampSendChat("/missed messages")
- end)
- end
- function missc()
- lua_thread.create(function()
- sampSendChat("/missed calls")
- end)
- end
- function gj()
- lua_thread.create(function()
- sampSendChat("/getjob")
- end)
- end
- function ha()
- lua_thread.create(function()
- sampSendChat("/heal")
- end)
- end
- function ntf()
- lua_thread.create(function()
- sampSendChat("/notifications")
- end)
- end
- function kc()
- lua_thread.create(function()
- sampSendChat("/killcp")
- end)
- end
- function czs()
- lua_thread.create(function()
- sampSendChat("/clanzones")
- end)
- end
- function li()
- lua_thread.create(function()
- sampSendChat("/lights")
- end)
- end
- function sj()
- lua_thread.create(function()
- sampSendChat("/switchjob")
- end)
- end
- function reall()
- lua_thread.create(function()
- sampSendChat("/repair")
- sampSendChat("/refill")
- end)
- end
- function staxi()
- lua_thread.create(function()
- sampSendChat("/service taxi")
- end)
- end
- function smech()
- lua_thread.create(function()
- sampSendChat("/service mechanic")
- end)
- end
- function smedic()
- lua_thread.create(function()
- sampSendChat("/service medic")
- end)
- end
- function ctaxi()
- lua_thread.create(function()
- sampSendChat("/cancel taxi")
- end)
- end
- function cmedic()
- lua_thread.create(function()
- sampSendChat("/cancel medic")
- end)
- end
- function cmech()
- lua_thread.create(function()
- sampSendChat("/cancel mechanic")
- end)
- end
- function emer()
- lua_thread.create(function()
- sampSendChat("/emergency")
- end)
- end
- function cmc()
- lua_thread.create(function()
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- sampAddChatMessage(" ", -1)
- end)
- end
- function svc()
- lua_thread.create(function()
- sampSendChat("/servicecalls")
- end)
- end
- function afvr()
- lua_thread.create(function()
- sampSendChat(mainIni.config.english and "/f FVR in 10 seconds." or "/f Dau FVR in 10 secunde.")
- wait (10000)
- sampSendChat("/fvr")
- sampSendChat("/f Done.")
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement