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

Wysłany: 2017-05-18, 21:40


szeroki

BlueRP.pl Zapraszam GTA5






Wiek: 36
Na forum: 3876 dni
Posty: 104

Piwa: 9

Respekt: 55,8

Ostrzeżeń: 40%
Witajcie Jak Naprawi? Ten Panel logowania Na Serwer chc? ?eby by?o T?o w tych Napisach Gdzie dany gracz ma si zalogowa? O to ssy



c_zone https://pastebin.com/Fv969Pbv



Odrazu mowie ze nie wiem czy w dobrym dziale pisz?

Podpis
**⚡┃CyanRP┃⚡ **

**💻┃*Adres IP:*** *wyspa.cyanrp.pl*
**📱┃*Link do serwera discord:*** *https://discord.gg/MJKqHksanU
Ostatnio zmieniony przez ToxiC. 2017-05-18, 22:40, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-19, 12:24


Allansso







Wiek: 24
Na forum: 3938 dni
Posty: 386

Piwa: 1537

Respekt: 180
Respekt: 180Respekt: 180

Ostrzeżeń: 100%
local czas getRealTime()
        dxDrawText(string.format("%02d"czas.hour)..":"..string.format("%02d"czas.minute), screenW 0.8610screenH 0.0742screenW 0.9721screenH 0.1302tocolor(255255255255), 1.80"pricedown""center""center"falsefalsefalsefalsefalse)

Tu akurat masz na czas, je?eli umiesz to usu? czas i dodaj text

Podpis
https://www.youtube.com/TheMikol
https://www.facebook.com/TheMikol1337
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-19, 14:35


Kibol1908.

Good Boy






Wiek: 27
Na forum: 4111 dni
Posty: 69
Nick w MP: Hello_Boy

Piwa: 99

Respekt: 65,3

Ostrzeżeń: 60%
"Allansso" napisał/a:

local czas getRealTime()
        dxDrawText(string.format("%02d"czas.hour)..":"..string.format("%02d"czas.minute), screenW 0.8610screenH 0.0742screenW 0.9721screenH 0.1302tocolor(255255255255), 1.80"pricedown""center""center"falsefalsefalsefalsefalse)

Tu akurat masz na czas, je?eli umiesz to usu? czas i dodaj text


Co to ma do t?a? O.o

Aby by?o t?o mo?esz zrobi? na dwa sposoby

1. Stworzy? t?o, po prostu prostok?t lub kwadrat za tekstem (Mo?esz to zrobi? za pomoc? GUIEditor'a lub samemu w kodzie .lua)

Więcej informacji znajdziesz w Wikipedii MTA:

dxDrawRectangle


2. Wstawi? obrazek za tymi napisami (Tak samo jak w dxDrawRectangle)

Więcej informacji znajdziesz w Wikipedii MTA:

dxDrawImage


Nic trudnego :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-19, 20:46


szeroki

BlueRP.pl Zapraszam GTA5






Wiek: 36
Na forum: 3876 dni
Posty: 104

Piwa: 9

Respekt: 55,8

Ostrzeżeń: 40%
Allansso, Kibol1908., nic z tego nie kumam :D Nie znam si? na Lua ale chcia?em ten panel logowania mam Inny ale Nie mog? do niego doda? Takie Tabele kilka Resp?w

Podpis
**⚡┃CyanRP┃⚡ **

**💻┃*Adres IP:*** *wyspa.cyanrp.pl*
**📱┃*Link do serwera discord:*** *https://discord.gg/MJKqHksanU
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-19, 21:07


Qwertick

Coming soon...






Wiek: 23
Na forum: 3577 dni
Posty: 472
Nick w MP: Qwertick

Piwa: 2726

Respekt: 215,8
Respekt: 215,8Respekt: 215,8

szeroki, To zobacz.
Kod:

--[[
Resource: OURGme v2
Developers: Split <split.programista@gmail.com>
You have no right to use this code without my permission.
(c) 2015 <split.programista@gmail.com>. All rights reserved.
]]
-- Pozycja Krecacej Kamery: -1956.66, 883.34, 69.31

x,y=36.63,82.19 -- my width
intro_step=math.random(0,850)

local sx,sy=guiGetScreenSize()
local data={ showed=nil, button={}, info=nil, misc=nil, }

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end

function renderZoneBox()
--dxDrawRectangle(sx*0/1024, sy*201/768, sx*1024/1024, sy*308/768, tocolor(0, 0, 0, 188), false)
if data.info then dxDrawText(data.info, sx*252/1024, sy*232/768, sx*800/1024, sy*255/768, tocolor(255, 0, 0, 255), 1.00, "default", "center", "center", false) end
--dxDrawLine(sx*0/1024, sy*199/768, sx*1022/1024, sy*200/768, tocolor(31, 111, 193, 255), 5, false)
--dxDrawLine(sx*0/1024, sy*509/768, sx*1022/1024, sy*510/768, tocolor(31, 111, 193, 255), 5, false)
--dxDrawText("Tablife", sx*0/1024, sy*157/768, sx*1024/1024, sy*237/768, white, 2.00, "pricedown", "center", "center", false)

dxDrawText("Spawn\nSan Fierro", sx*-80/1024, sy*-185/768, sx*323/1024, sy*386/768, white, 1.00, "default-bold", "center", "center", false)
dxDrawText("Spawn\nLos Santos", sx*-80/1024, sy*-185/768, sx*323/1024, sy*486/768, white, 1.00, "default-bold", "center", "center", false)
dxDrawText("Spawn\nLas Venturas", sx*-80/1024, sy*-185/768, sx*323/1024, sy*586/768, white, 1.00, "default-bold", "center", "center", false)
dxDrawText("Spawn FC", sx*-80/1024, sy*-185/768, sx*323/1024, sy*686/768, white, 1.00, "default-bold", "center", "center", false)
dxDrawText("Przechowywalnia Pojazd?w", sx*-80/1024, sy*-185/768, sx*323/1024, sy*786/768, white, 1.00, "default-bold", "center", "center", false)
dxDrawText("Prawo Jazdy\nLas Pasayadas", sx*-80/1024, sy*-185/768, sx*323/1024, sy*886/768, white, 1.00, "default-bold", "center", "center", false)
dxDrawText("Dom", sx*-80/1024, sy*-185/768, sx*323/1024, sy*986/768, white, 1.00, "default-bold", "center", "center", false)
dxDrawText("Baza organizacji", sx*-80/1024, sy*-185/768, sx*323/1024, sy*1086/768, white, 1.00, "default-bold", "center", "center", false)
dxDrawImage(1120,10,594,207,"logo.png", angle, -0, -120 )

local zone1=math.sin(intro_step/500)*9000
local zone2=math.cos(intro_step/500)*9000
setCameraMatrix (2019.56, 1343.03, 54.00, zone1, zone2, 2)
--setCameraMatrix(zone1, zone2, 120, zone1, zone2, 120)
intro_step=intro_step-1.5

end


addEventHandler("onClientClick", root, function(btn,state)
if btn=="left" and state=="down" then
--Spawn\nSan Fierro--
if isMouseIn(sx*-80/1024, sy*-185/768, sx*323/1024, sy*386/768) and data.showed then
setElementData(localPlayer,"player:spawn",{-1952.83472, 891.87103, 42.10968+0.1})
closeZones()
end
--Spawn\nLos Santos--
if isMouseIn(sx*-80/1024, sy*-185/768, sx*323/1024, sy*486/768) and data.showed then
setElementData(localPlayer,"player:spawn",{1714.93384, -1720.78235, 13.54371+0.1})
closeZones()
end
--Spawn\nLas Venturas--
if isMouseIn(sx*-80/1024, sy*-185/768, sx*323/1024, sy*586/768) and data.showed then
setElementData(localPlayer,"player:spawn",{1953.98938, 1343.11914, 15.37461+0.1})
closeZones()
end
--Spawn FC--
if isMouseIn(sx*-80/1024, sy*-185/768, sx*323/1024, sy*686/768) and data.showed then
setElementData(localPlayer,"player:spawn",{-70.12792, 1223.10754, 19.67812+0.1})
closeZones()
end
--Przechowywalnia Pojazd?w--
if isMouseIn(sx*-80/1024, sy*-185/768, sx*323/1024) and data.showed then
setElementData(localPlayer,"player:spawn",{-1970.21362, 616.15295, 35.17188+0.1})
closeZones()
end
--Prawo Jazdy\nLas Pasayadas--
if isMouseIn(sx*-80/1024, sy*-185/768, sx*323/1024, sy*886/768) and data.showed then
setElementData(localPlayer,"player:spawn",{-257.88248, 2780.21655, 62.68750+0.1})
closeZones()
end
--Dom--
if isMouseIn(sx*10/1024, sy*342/768, sx*225/1024, sy*92/768) and data.showed then
local domek=getElementData(localPlayer,"player:house")
if not domek then
setElementData(localPlayer,"player:spawn",{1479.51, -1713.07, 14.05+0.1})
outputChatBox("Nie posiadasz domku!")
end
closeZones()
end
--Baza organizacji--
if isMouseIn(sx*10/1024, sy*480/768, sx*225/1024, sy*92/768) and data.showed then
local org=getElementData(localPlayer,"player:organization:spawn")
if not org then
setElementData(localPlayer,"player:spawn",{1479.51, -1713.07, 14.05+0.1})
outputChatBox("Nie posiadasz organizacji/Lub nie posiada ona spawnu!")
closeZones()
else
setTimer(outputChatBox,1500,1,"Pomy?lnie zrespi?e? si? w organizacji.")
setElementData(localPlayer,"player:spawn",{tonumber(org[1]),tonumber(org[2]),tonumber(org[3])})
closeZones()
end
end
end
end)
function closeZones()
showChat(true)
showCursor(false)
fadeCamera(false)
setElementAlpha(localPlayer,255)
setElementData(localPlayer,"status","Zalogowany(a)")
stopSound(data.misc)
showPlayerHudComponent("all",false)
showPlayerHudComponent("radar",true)
showPlayerHudComponent("crosshair",true)
showPlayerHudComponent("weapon",true)
showPlayerHudComponent("radar",true)
showPlayerHudComponent("health",true)
showPlayerHudComponent("breath",true)
showPlayerHudComponent("clock",true)
showPlayerHudComponent("ammo",true)
data.showed=false
destroyElement(blurShader)
-- Usuwamy elementy
triggerServerEvent("core:spawnPlayer", localPlayer)
setTimer(triggerEvent, 250, 1, "gui:start", localPlayer)
removeEventHandler("onClientRender", root, renderZoneBox)
blur = false
end

function showZones(misc)
data.misc=misc
data.showed=true
showPlayerHudComponent("all",false)
guiSetInputMode("no_binds_when_editing")
addEventHandler("onClientRender", root, renderZoneBox)
end

-----------------------------------------------------------------------------------------------------------------------
--[[x,y=36.63,82.19 -- my width
intro_step=math.random(0,850)

local sx,sy=guiGetScreenSize()
local data={ showed=nil, button={}, info=nil, misc=nil, }

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end

function renderZoneBox()
dxDrawRectangle(sx*0/1024, sy*201/768, sx*1024/1024, sy*308/768, tocolor(0, 0, 0, 188), false)
if data.info then dxDrawText(data.info, sx*252/1024, sy*232/768, sx*800/1024, sy*255/768, tocolor(237, 0, 0, 255), 1.00, "default", "center", "center", false) end
dxDrawImage(sx * 0.3118, sy * 0.0313, sx * 0.3838, sy * 0.1549, "logo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)

if not isMouseIn(sx*10/1024, sy*48/768, sx*225/1024, sy*62/768) then dxDrawRectangle(sx*10/1024, sy*48/768, sx*225/1024, sy*62/768, tocolor(255,255,255, 170), false)
else dxDrawRectangle(sx*10/1024, sy*48/768, sx*225/1024, sy*62/768, tocolor(255,255,255, 230), false) end
if not isMouseIn(sx*10/1024, sy*212/768, sx*225/1024, sy*62/768) then dxDrawRectangle(sx*10/1024, sy*212/768, sx*225/1024, sy*62/768, tocolor(255,255,255, 170), false)
else dxDrawRectangle(sx*10/1024, sy*212/768, sx*225/1024, sy*62/768, tocolor(255,255,255, 230), false) end
if not isMouseIn(sx*10/1024, sy*356/768, sx*225/1024, sy*62/768) then dxDrawRectangle(sx*10/1024, sy*356/768, sx*225/1024, sy*62/768, tocolor(255,255,255, 170), false)
else dxDrawRectangle(sx*10/1024, sy*356/768, sx*225/1024, sy*62/768, tocolor(255,255,255, 230), false) end
if not isMouseIn(sx*10/1024, sy*500/768, sx*225/1024, sy*62/768) then dxDrawRectangle(sx*10/1024, sy*500/768, sx*225/1024, sy*62/768, tocolor(255,255,255, 170), false)
else dxDrawRectangle(sx*10/1024, sy*500/768, sx*225/1024, sy*62/768, tocolor(255,255,255, 230), false) end
if not isMouseIn(sx*10/1024, sy*644/768, sx*225/1024, sy*62/768) then dxDrawRectangle(sx*10/1024, sy*644/768, sx*225/1024, sy*62/768, tocolor(255,255,255, 170), false)
else dxDrawRectangle(sx*10/1024, sy*644/768, sx*225/1024, sy*62/768, tocolor(255,255,255, 230), false) end

dxDrawText("Spawn LV", sx*-80/1024, sy*-188/768, sx*323/1024, sy*386/768, tocolor(0,0,0,255), 1.00, "default-bold", "center", "center", false)
dxDrawText("Przechowywalnia pojazd?w LV", sx*-380/1024, sy*92/768, sx*641/1024, sy*386/768, tocolor(0,0,0,255), 1.00, "default-bold", "center", "center", false)
dxDrawText("Dom", sx*-700/1024, sy*373/768, sx*937/1024, sy*386/768, tocolor(0,0,0,255), 1.00, "default-bold", "center", "center", false)
dxDrawText("Baza organizacji", sx*-700/1024, sy*660/768, sx*937/1024, sy*386/768, tocolor(0,0,0,255), 1.00, "default-bold", "center", "center", false)
dxDrawText("Spawn FC", sx*-80/1024, sy*957/768, sx*323/1024, sy*386/768, tocolor(0,0,0,255), 1.00, "default-bold", "center", "center", false)


local zone1=math.sin(intro_step/500)*9000
local zone2=math.cos(intro_step/500)*9000
setCameraMatrix (2019.56, 1343.03, 54.00, zone1, zone2, 2)
--setCameraMatrix(zone1, zone2, 120, zone1, zone2, 120)
intro_step=intro_step-1.5

end

addEventHandler("onClientClick", root, function(btn,state)
if btn=="left" and state=="down" then
if isMouseIn(sx*10/1024, sy*54/768, sx*225/1024, sy*92/768) and data.showed then
setElementData(localPlayer,"player:spawn",{1479.51, -1713.07, 14.05+0.1})
closeZones()
end
if isMouseIn(sx*10/1024, sy*198/768, sx*225/1024, sy*92/768) and data.showed then
setElementData(localPlayer,"player:spawn",{1588.83, -1406.00, 13.82+0.1})
closeZones()
end
if isMouseIn(sx*10/1024, sy*624/768, sx*225/1024, sy*92/768) and data.showed then
setElementData(localPlayer,"player:spawn",{2597.44, 1889.67, 11.03+0.1})
closeZones()
end
if isMouseIn(sx*10/1024, sy*342/768, sx*225/1024, sy*92/768) and data.showed then
local domek=getElementData(localPlayer,"player:house")
if not domek then
setElementData(localPlayer,"player:spawn",{1479.51, -1713.07, 14.05+0.1})
outputChatBox("* Nie posiadasz domku!")
end
closeZones()
end
if isMouseIn(sx*10/1024, sy*480/768, sx*225/1024, sy*92/768) and data.showed then
local org=getElementData(localPlayer,"player:organization:spawn")
if not org then
setElementData(localPlayer,"player:spawn",{1479.51, -1713.07, 14.05+0.1})
outputChatBox("* Nie posiadasz organizacji/Lub nie posiada ona spawnu!")
closeZones()
else
setTimer(outputChatBox,1500,1,"* Pomy?lnie zrespi?e?(a?) si? w organizacji.")
setElementData(localPlayer,"player:spawn",{tonumber(org[1]),tonumber(org[2]),tonumber(org[3])})
closeZones()
end
end
end
end)


function closeZones()
showChat(true)
showCursor(false)
fadeCamera(false)
setElementAlpha(localPlayer,255)
stopSound(data.misc)
showPlayerHudComponent("all",false)
showPlayerHudComponent("radar",true)
showPlayerHudComponent("crosshair",true)
showPlayerHudComponent("weapon",true)
showPlayerHudComponent("health",true)
showPlayerHudComponent("breath",true)
showPlayerHudComponent("ammo",true)
data.showed=false
destroyElement(blurShader)
-- Usuwamy elementy
triggerServerEvent("core:spawnPlayer", localPlayer)
setTimer(triggerEvent, 250, 1, "gui:start", localPlayer)
removeEventHandler("onClientRender", root, renderZoneBox)
blur = false
end

function showZones(misc)
data.misc=misc
data.showed=true
showPlayerHudComponent("all",false)
guiSetInputMode("no_binds_when_editing")
addEventHandler("onClientRender", root, renderZoneBox)
end--]]


Podpis

Kontakt
Discord: Qwertick#1210

Ostatnio zmieniony przez ToxiC. 2017-05-20, 00:50, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-20, 19:17


szeroki

BlueRP.pl Zapraszam GTA5






Wiek: 36
Na forum: 3876 dni
Posty: 104

Piwa: 9

Respekt: 55,8

Ostrzeżeń: 40%
Wercio., zaraz sprawdz?

[ Dodano: 2017-05-20, 21:04 ]
Wercio., Nie dzia?a tylko przesunelo sie logo

[ Dodano: 2017-05-25, 21:12 ]
Dalej nie dzia?a co zrobi?

[ Dodano: 2017-05-30, 20:54 ]
Jak to naprawic ?? ?

Podpis
**⚡┃CyanRP┃⚡ **

**💻┃*Adres IP:*** *wyspa.cyanrp.pl*
**📱┃*Link do serwera discord:*** *https://discord.gg/MJKqHksanU
Postaw piwo autorowi tego posta
 

 
Tagi: panel :: logowania
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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