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

Wysłany: 2018-05-12, 18:00


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

CLIENT


x,guiGetScreenSize()
button guiCreateButton(627/1440*x510/900*y209/1440*x123/900*y"Uruchom Dzwonki"false)
guiSetProperty(button"NormalTextColour""FFAAAAAA")
guiSetVisible(buttonfalse)

function drawSyrena()
dxDrawRectangle(600/1440*x278/900*y261/1440*x372/900*ytocolor(0033184), false)
dxDrawRectangle(590/1440*x265/900*y289/1440*x16/900*ytocolor(18700255), false)
dxDrawText("Dzwonki"616/1440*x346/900*y851/1440*x445/900*ytocolor(255255255255), 3.00"default""center""center"falsefalsefalsefalsefalse)
end

addEvent("showGUI"true)
addEventHandler("showGUI"getRootElement(), function()
guiSetVisible(buttontrue)
addEventHandler("onClientRender"getRootElement(), drawSyrena)
showCursor(truefalse)
end)

addEvent("hideGUI"true)
addEventHandler("hideGUI"getRootElement(), function()
    guiSetVisible(buttonfalse)
    removeEventHandler("onClientRender"getRootElement(), drawSyrena)
    showCursor(false)
    panel=false
end)

addEventHandler("onClientGUIClick"button, function()
triggerServerEvent("playSyrena_sc"getLocalPlayer())
guiSetVisible(buttonfalse)
removeEventHandler("onClientRender"getRootElement(), drawSyrena)
showCursor(false)
endfalse)

addEvent("playSyrena_cc"true)
addEventHandler("playSyrena_cc"getRootElement(), function()
local syrena playSound3D("pik.wav",-2305, -17442.5truesetSoundMaxDistance(syrena150)
setTimer(stopSound,25*10001syrena)
end)


SERVER

addEventHandler("onMarkerLeave"muker, function(el,md)
    if getElementType(el) ~= "player" then return end
    triggerClientEvent(el"hideGUI"el)
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
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
adisonboss
Wysłany: 2018-05-15, 06:48


adisonboss







Wiek: 23
Na forum: 3332 dni
Posty: 237

Piwa: 6

Respekt: 50

Sorry ?e tak p??no ale dzi?ki dzia?a. Umiesz rozwi?za? problem z na?o?onym na siebie GUI tak jak na screenie https://imgur.com/a/wahiNl2

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-05-15, 14:51


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

A to nie jest czasem od 3d texta(napis nad markerem) ?

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-05-15, 15:16


adisonboss







Wiek: 23
Na forum: 3332 dni
Posty: 237

Piwa: 6

Respekt: 50

?adnego napisu nad markerem nie ma. Tylko s? dwa markery i w obydwu wy?wietla si? to samo

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-05-15, 15:39


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

Poka? ca?y kod z strony clienta

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-05-15, 16:04


adisonboss







Wiek: 23
Na forum: 3332 dni
Posty: 237

Piwa: 6

Respekt: 50

1. Skrypt

x,guiGetScreenSize()
button guiCreateButton(627/1440*x510/900*y209/1440*x123/900*y"Uruchom Syrene"false)
guiSetProperty(button"NormalTextColour""FFAAAAAA")
guiSetVisible(buttonfalse)

function drawSyrena()
dxDrawRectangle(600/1440*x278/900*y261/1440*x372/900*ytocolor(0033184), false)
dxDrawRectangle(590/1440*x265/900*y289/1440*x16/900*ytocolor(18700255), false)
dxDrawText("Syrena OSP Fort Carson"616/1440*x346/900*y851/1440*x445/900*ytocolor(255255255255), 3.00"default""center""center"falsefalsefalsefalsefalse)
end

addEvent("showGUI"true)
addEventHandler("showGUI"getRootElement(), function()
guiSetVisible(buttontrue)
addEventHandler("onClientRender"getRootElement(), drawSyrena)
showCursor(truefalse)
end)

addEvent("hideGUI"true)
addEventHandler("hideGUI"getRootElement(), function()
    guiSetVisible(buttonfalse)
    removeEventHandler("onClientRender"getRootElement(), drawSyrena)
    showCursor(false)
    panel=false
end)

addEventHandler("onClientGUIClick"button, function()
triggerServerEvent("playSyrena_s"getLocalPlayer())
guiSetVisible(buttonfalse)
removeEventHandler("onClientRender"getRootElement(), drawSyrena)
showCursor(false)
endfalse)

addEventHandler("onClientClick"getRootElement(), CloseguiaddEvent("playSyrena_c"true)
addEventHandler("playSyrena_c"getRootElement(), function()
local syrena playSound3D("syrena.wav",-146.909881039.6346427.25537truesetSoundMaxDistance(syrena1800)
setTimer(stopSound,103*10002.5syrena)
end)


2.Skrypt

x,guiGetScreenSize()
button guiCreateButton(627/1440*x510/900*y209/1440*x123/900*y"Uruchom Dzwonki"false)
guiSetProperty(button"NormalTextColour""FFAAAAAA")
guiSetVisible(buttonfalse)

function drawSyrena()
dxDrawRectangle(600/1440*x278/900*y261/1440*x372/900*ytocolor(0033184), false)
dxDrawRectangle(590/1440*x265/900*y289/1440*x16/900*ytocolor(18700255), false)
dxDrawText("Dzwonki"616/1440*x346/900*y851/1440*x445/900*ytocolor(255255255255), 3.00"default""center""center"falsefalsefalsefalsefalse)
end

addEvent("showGUI"true)
addEventHandler("showGUI"getRootElement(), function()
guiSetVisible(buttontrue)
addEventHandler("onClientRender"getRootElement(), drawSyrena)
showCursor(truefalse)
end)

addEvent("hideGUI"true)
addEventHandler("hideGUI"getRootElement(), function()
    guiSetVisible(buttonfalse)
    removeEventHandler("onClientRender"getRootElement(), drawSyrena)
    showCursor(false)
    panel=false
end)

addEventHandler("onClientGUIClick"button, function()
triggerServerEvent("playSyrena_sc"getLocalPlayer())
guiSetVisible(buttonfalse)
removeEventHandler("onClientRender"getRootElement(), drawSyrena)
showCursor(false)
endfalse)

addEvent("playSyrena_cc"true)
addEventHandler("playSyrena_cc"getRootElement(), function()
local syrena playSound3D("pik.wav",-2305, -17442.5truesetSoundMaxDistance(syrena150)
setTimer(stopSound,25*10001syrena)
end)


Postaw piwo autorowi tego posta
 

 
Tagi: przycisk :: quotanulujquot :: gui
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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