Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-07-13, 18:59


Fl!k







Wiek: 26
Na forum: 3592 dni
Posty: 162

Piwa: 18

Respekt: 50

Witam nie wiem jak przeniesc syrene PSP bo jest tam jakis dziwny kod
local allowed = {{4857}, {6590}, {97122}}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-13, 19:01


_jvneczek







Wiek: 22
Na forum: 4325 dni
Posty: 1513
Nick w MP: _jvneczek

Piwa: 3949

Respekt: 337,5
Respekt: 337,5Respekt: 337,5Respekt: 337,5

Szym34kKacperQ, mo?e daj ca?y kod?

Podpis

Support Team: 04.10.2020 - 01.09.2020
Test Moderator: 03.05.2021 - 01.09.2021
Moderator: 01.09.2021 - 23.10.2021

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-13, 19:19


Fl!k







Wiek: 26
Na forum: 3592 dni
Posty: 162

Piwa: 18

Respekt: 50

local allowed = {{4857}, {6590}, {97122}}
Marker(Vector3(-2221.97, -108.8540.36-.9), "cylinder"1255255255130)
ColShape.Sphere(-2221.97, -108.8540.3620)

local text Element("text")
text:setData("name""Dyspozytornia\nzarz?dca: brak")
text.position Vector3(-2221.97, -108.8540.36)
function isPlayerInFaction(plr)
    if plr:getData("player:uid"then
        local result exports["ogrpg-db"]:dbGet("SELECT 1 FROM ogrpg_factions WHERE code=? AND uid=? LIMIT 1;""FDSA"plr:getData("player:uid"))
        if result[1then return true else return false end
    end
end

addEvent("iyw_fire_dispatching:sound"true)
addEventHandler("iyw_fire_dispatching:sound"root, function(playersound)
    if sound == "start" then
        for _,v in ipairs(Element.getAllByType("player")) do
            if isPlayerInFaction(vthen
                v:outputChat("[#ff0033!]#FFFFFF *FDC* to 10-1 reaguj?cych na kod trzeci, 10-10 TAC 1"25500true)
            end
        end
        triggerClientEvent(root"iyw_fire_dispatching:sync"root"start")
    elseif sound == "stop" then
        triggerClientEvent(root"iyw_fire_dispatching:sync"root"stop")
    end
end)

addEventHandler("onPlayerQuit"root, function()
    if text:getData("name") == "Dyspozytornia\nzarz?dca: "..source.name:gsub("#%x%x%x%x%x%x"""then
        text:setData("name""Dyspozytornia\nzarz?dca: brak")
    end
end)

addEventHandler("onMarkerHit"resourceRoot, function(playerdimension)
    if player.type == "player" and dimension then
        if not player.vehicle then
            if text:getData("name") == "Dyspozytornia\nzarz?dca: brak" then
                if player:getData("player:duty") == "FDSA" then
                    text:setData("name""Dyspozytornia\nzarz?dca: "..player.name:gsub("#%x%x%x%x%x%x"""))
                    triggerClientEvent(player"iyw_fire_dispatching:show_gui"resourceRoot)
                else
                    triggerClientEvent(player"onClientAddNotification"player"Wejd? na s?u?b?!""error")
                end
            else
                if text:getData("name") == "Dyspozytornia\nzarz?dca: "..player.name:gsub("#%x%x%x%x%x%x"""then 
                    triggerClientEvent(player"iyw_fire_dispatching:show_gui"resourceRoot)
                else
                    triggerClientEvent(player"onClientAddNotification"player"Dyspozytornia jest zaj?ta!""error")
                end
            end
        end
    end
end)

addEventHandler("onColShapeLeave"resourceRoot, function(playerdimension)
    if text:getData("name") == "Dyspozytornia\nzarz?dca: "..player.name:gsub("#%x%x%x%x%x%x"""then
        text:setData("name""Dyspozytornia\nzarz?dca: brak")
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-13, 20:22


Hades.

Łiiiiiiiiii






Wiek: 22
Na forum: 4699 dni
Posty: 372
Nick w MP: Hades

Piwa: 3214

Respekt: 337,8
Respekt: 337,8Respekt: 337,8Respekt: 337,8

2 linijka to kordy "Marker(Vector3(x,y,z),"cylinder", 1,255,255,255,130)"

Licz? na :piwo: or R*


local allowed = {{4857}, {6590}, {97122}}
Marker(Vector3(-2221.97, -108.8540.36-.9), "cylinder"1255255255130) -- tu zmieniasz kordy 
ColShape.Sphere(-2221.97, -108.8540.3620)

local text Element("text")
text:setData("name""Dyspozytornia\nzarz?dca: brak")
text.position Vector3(-2221.97, -108.8540.36)
function isPlayerInFaction(plr)
    if plr:getData("player:uid"then
        local result exports["ogrpg-db"]:dbGet("SELECT 1 FROM ogrpg_factions WHERE code=? AND uid=? LIMIT 1;""FDSA"plr:getData("player:uid"))
        if result[1then return true else return false end
    end
end

addEvent("iyw_fire_dispatching:sound"true)
addEventHandler("iyw_fire_dispatching:sound"root, function(playersound)
    if sound == "start" then
        for _,v in ipairs(Element.getAllByType("player")) do
            if isPlayerInFaction(vthen
                v:outputChat("[#ff0033!]#FFFFFF *FDC* to 10-1 reaguj?cych na kod trzeci, 10-10 TAC 1"25500true)
            end
        end
        triggerClientEvent(root"iyw_fire_dispatching:sync"root"start")
    elseif sound == "stop" then
        triggerClientEvent(root"iyw_fire_dispatching:sync"root"stop")
    end
end)

addEventHandler("onPlayerQuit"root, function()
    if text:getData("name") == "Dyspozytornia\nzarz?dca: "..source.name:gsub("#%x%x%x%x%x%x"""then
        text:setData("name""Dyspozytornia\nzarz?dca: brak")
    end
end)

addEventHandler("onMarkerHit"resourceRoot, function(playerdimension)
    if player.type == "player" and dimension then
        if not player.vehicle then
            if text:getData("name") == "Dyspozytornia\nzarz?dca: brak" then
                if player:getData("player:duty") == "FDSA" then
                    text:setData("name""Dyspozytornia\nzarz?dca: "..player.name:gsub("#%x%x%x%x%x%x"""))
                    triggerClientEvent(player"iyw_fire_dispatching:show_gui"resourceRoot)
                else
                    triggerClientEvent(player"onClientAddNotification"player"Wejd? na s?u?b?!""error")
                end
            else
                if text:getData("name") == "Dyspozytornia\nzarz?dca: "..player.name:gsub("#%x%x%x%x%x%x"""then 
                    triggerClientEvent(player"iyw_fire_dispatching:show_gui"resourceRoot)
                else
                    triggerClientEvent(player"onClientAddNotification"player"Dyspozytornia jest zaj?ta!""error")
                end
            end
        end
    end
end)

addEventHandler("onColShapeLeave"resourceRoot, function(playerdimension)
    if text:getData("name") == "Dyspozytornia\nzarz?dca: "..player.name:gsub("#%x%x%x%x%x%x"""then
        text:setData("name""Dyspozytornia\nzarz?dca: brak")
    end
end)


Podpis
Skrypty/Grafiki na zamówienie!
Kontakt: Discord R35#5507

Discord związany z pomocą: https://discord.gg/ttkQTsc
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-13, 21:13


Fl!k







Wiek: 26
Na forum: 3592 dni
Posty: 162

Piwa: 18

Respekt: 50

Mi chodzi o 1 linijke poniewaz przenosz? i nie s?ychac syreny tylko ja slychac w starej bazie FDSA

Postaw piwo autorowi tego posta
 

 
Tagi: jak :: zmienic :: local :: allowed
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Jak zmienic local allowed Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku