Wysłany: 2019-09-22, 00:16
Pyrek24
Wiek: 25 Na forum: 3438 dni Posty: 546
Nick w MP: Pyrek
Piwa : 10
Witam ot?? zrobi?em sobie logowanie itd. Wszystko git, lecz gdy si? zaloguje i wybior? spawn to tak. Przycisk?w nie wida?, lecz gdy klikn? f3, i naceluje kursorem na przycisk, to si? otwiera okno, mimo ?e tego nie wida?, nwm jakby to zrobi?, pr?bowa?em ka?d? zak?adk? w logowaniu w w setElementInterior i dim, lecz nic.
Wysłany: 2019-09-25, 23:17
TheBAMBO
restMTA
Wiek: 22 Na forum: 2812 dni Posty: 73
Nick w MP: zexty
Piwa : 12110
dodaj to na sam? g?r? kodu:
gui = false
to gdy odpala ci sie gui:
gui = true
a to w onClientClick
if gui == true then
Wysłany: 2019-09-26, 08:31
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Poka? kod tego co nie dzia?a.
Wysłany: 2019-09-27, 23:38
Pyrek24
Wiek: 25 Na forum: 3438 dni Posty: 546
Nick w MP: Pyrek
Piwa : 10
Tutaj daje kod bez gui. Jest to urywek kodu Prosz?
kod na gui.
strona == 1
aktualnie = "logowanie"
function renderLoginBox ()
if screenW < 1024 and screenH < 768 then
setTime ( 2 , 0 )
blur = false
windowx , windowy = screenW / 2 - 768 / 2 , screenH / 2 - 350 / 2
dxDrawRectangle ( windowx , windowy , 768 , 350 , tocolor ( 0 , 0 , 0 , 200 ), false )
dxDrawText ( "Aby zagra? na serwerze zmie? ro?dzielczo?? na min. 1024x768\nPrzepraszamy za utrudnienia." , windowx + 768 / 2 , windowy + 350 / 2 , 768 , 350 , tocolor ( 255 , 0 , 0 , 200 ), 1.00 * px , "clear" , "center" , "center" , false , true , false , false , false )
return
end
setTime ( 2 , 0 )
blur = false
elseif strona == 2 then
-- guii
elseif strona == 3 then
-- gui
end
Kod na przyciski
addEventHandler ( "onClientClick" , root , function( btn , state )
if btn == "left" and state == "down" then
if isMouseIn ( screenW * 0.4182 , screenH * 0.1593 , screenW * 0.1786 , screenH * 0.0611 ) then strona = 4
playSound ( "misc/click.mp3" )
-- triggerEvent ( "onClientAddNotification" , localPlayer , "W tej zak?adce znajdziesz #ffc800Regulamin#ffffff Serwerowy !" , "info" )
destroyElement ( data . button [ 1 ])
destroyElement ( data . button [ 2 ])
-- destroyElement ( data . button [ 3 ])
end
if isMouseIn ( screenW * 0.4151 , screenH * 0.8963 , screenW * 0.1786 , screenH * 0.0611 ) then strona = 1
playSound ( "misc/click.mp3" )
destroyElement ( data . button [ 1 ])
destroyElement ( data . button [ 2 ])
-- destroyElement ( data . button [ 3 ])
end
if isMouseIn ( screenW * 0.8115 , screenH * 0.8778 , screenW * 0.1786 , screenH * 0.0639 ) then strona = 1
playSound ( "misc/click.mp3" )
destroyElement ( data . button [ 1 ])
destroyElement ( data . button [ 2 ])
-- destroyElement ( data . button [ 3 ])
end
if isMouseIn ( screenW * 0.0193 , screenH * 0.8778 , screenW * 0.1786 , screenH * 0.0639 ) then strona = 1
playSound ( "misc/click.mp3" )
destroyElement ( data . button [ 1 ])
destroyElement ( data . button [ 2 ])
-- destroyElement ( data . button [ 3 ])
end
Tagi: buttony
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: