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

Wysłany: 2018-07-24, 18:40


Szymenczek







Wiek: 27
Na forum: 3014 dni
Posty: 6

Piwa: 1

Respekt: 50

Witam Prosze o Pomoc z Jednym Plikiem Bardziej Skryptem

Po w??czeniu Skrypt Nie dzia?a Powinno By? ?e Przy Fire Trucku B?dzie Schowek Lecz on nie dzia?a

Nawet Je?li mam Admina Marker Si? Nie Pojawia Pomocy!


A propo Jest to serwer Prywatny wi?c



Jak Zrobi? To Tak ?eby Dzia?a?o to dla wszystkich Graczy ? ? ?

Link: http://gtao.pl/skrypt-sch...3750.htm#779086


LUA






--[ Autor skryptu venzikk ]
-- [ Edytowany przez Maszek]
GUIEditor = {
    button = {},
    window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(47, 199, 198, 139, "Schowek", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.button[1] = guiCreateButton(9, 28, 83, 30, "Pacho?ek", false, GUIEditor.window[1])
        GUIEditor.button[2] = guiCreateButton(102, 28, 83, 30, "Barierka", false, GUIEditor.window[1])


        GUIEditor.button[3] = guiCreateButton(9, 72, 83, 30, "Ga?nica", false, GUIEditor.window[1])
        GUIEditor.button[4] = guiCreateButton(102, 72, 83, 30, "Nomex", false, GUIEditor.window[1])
        GUIEditor.button[5] = guiCreateButton(9, 106, 181, 30, "Schowaj wszystko", false, GUIEditor.window[1])    
    end
    
    )
addEventHandler("onClientResourceStart",resourceRoot,
function()
guiSetVisible(GUIEditor.window[1],false)
end
)




bindKey("l","down",function()
local veh = getPedOccupiedVehicle(localPlayer)
if (getElementModel(veh) == 407) then
local x,y,z = getElementPosition(localPlayer)
local marker = createMarker(x,y,z,"cylinder",1,255,0,0,255)
attachElements(marker,veh,1.6,-0.9,-1.4)
local marker = createMarker(x,y,z,"cylinder",1,255,0,0,255)
attachElements(marker,veh,-1.6,-0.9,-1.4)
function baga()
guiSetVisible(GUIEditor.window[1], true)
showCursor(true)
end
addEventHandler("onClientMarkerHit", marker, baga)
bindKey(";","down",function()
destroyElement(marker)
end)
end
end)



function zamykamy()
if source ~= GUIEditor.button[5] then return end
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
destroyElement(barierkaa, localPlayer)
destroyElement(pacholekk, localPlayer)
triggerServerEvent("oddaj", localPlayer)
triggerServerEvent("oddaj", localPlayer)
end
addEventHandler ( "onClientGUIClick", root, zamykamy)

function desert()
if source ~= GUIEditor.button[3] then return end
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
    triggerServerEvent("daj", localPlayer)
        end

addEventHandler ( "onClientGUIClick", root, desert)


function kamizelka()
if source ~= GUIEditor.button[4] then return end
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
    triggerServerEvent("daj2", localPlayer)
        end

addEventHandler ( "onClientGUIClick", root, kamizelka)

function barierka()
if source ~= GUIEditor.button[2] then return end
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
        barierkaa = createObject(1228, 0, 0, 0, 0, 0, 0)
        attachElements (barierkaa, localPlayer, 0, 0.5, -0.5, 0, 0, -90)
                end
addEventHandler ( "onClientGUIClick", root, barierka)

bindKey("m","down",function()
        detachElements(barierkaa, localPlayer)
end)

bindKey("m","down",function()
setElementCollisionsEnabled(barierkaa, true)
setObjectBreakable(1228, true)
        detachElements(barierkaa, localPlayer)
end)

function pacholek()
if source ~= GUIEditor.button[1] then return end
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
        pacholekk = createObject(1238, 0, 0, 0, 0, 0, 0)
        attachElements (pacholekk, localPlayer, 0, 0.5, -0.5, 0, 0, -90)
                end
addEventHandler ( "onClientGUIClick", root, pacholek)

bindKey("m","down",function()
        detachElements(pacholekk, localPlayer)
end)


Ostatnio zmieniony przez FrosteR 2018-07-25, 00:33, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-24, 19:10


Kalizman







Wiek: 24
Na forum: 3792 dni
Posty: 1394

Piwa: 4624

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

musisz znajdowa? si? w poje?dzie fire truck a nast?pnie wcisn?? klawisz L i si? pojawi schowek, a je?eli klikniesz klawisz ; to zniknie marker, spr?buj

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Szymenczek
Tagi: skrypt
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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