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

Wysłany: 2014-06-30, 16:44


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

Witam! Jak zrobi?, aby po zalogowaniu wy?wietla? si? panel spawnu. Za pomoc = :piwo:

Kod:
spawn guiCreateButton(50322231750"SPAWN G??WNY"false)
guiSetFont(spawn"default-bold-small")


urzad guiCreateButton(50331931750"URZ?D"false)
guiSetFont(urzad"default-bold-small")


wylogowania guiCreateButton(50341531750"MIEJSCE WYLOGOWANIA"false)
guiSetFont(wylogowania"default-bold-small")


function panel()
    dxDrawRectangle(493180337312tocolor(000235), false)
    dxDrawText("Wybierz Spawn"517159806203tocolor(255255255255), 1.20"bankgothic""left""top"falsefalsetruefalsefalse)
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 16:45


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

addEventHandler ( "onClientPlayerLogin", root, function()
guiSetVisible ( element, true )
end)

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 16:46


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

A co z dx?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 16:54


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

addEventHandler ( "onClientRender", root, panel )

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 17:02


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

Nie dzia?a.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 17:03


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

za ma?o/ za du?o end da?e?.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 17:04


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

Dobra jest, ale wy?wietla si? odrazu po wej?ciu. W dodatku bez button?w...

[ Dodano: 2014-06-30, 17:04 ]
Kod:spawn = guiCreateButton(503, 222, 317, 50, "SPAWN G??WNY", false)
guiSetFont(spawn, "default-bold-small")


urzad = guiCreateButton(503, 319, 317, 50, "URZ?D", false)
guiSetFont(urzad, "default-bold-small")


wylogowania = guiCreateButton(503, 415, 317, 50, "MIEJSCE WYLOGOWANIA", false)
guiSetFont(wylogowania, "default-bold-small")

guiSetVisible ( spawn, false )
guiSetVisible ( urzad, false )
guiSetVisible ( wylogowania, false )

function panel()
dxDrawRectangle(493, 180, 337, 312, tocolor(0, 0, 0, 235), false)
dxDrawText("Wybierz Spawn", 517, 159, 806, 203, tocolor(255, 255, 255, 255), 1.20, "bankgothic", "left", "top", false, false, true, false, false)
end
addEventHandler ( "onClientRender", root, panel )


addEventHandler ( "onClientPlayerLogin", root, function()
guiSetVisible ( spawn, true )
guiSetVisible ( urzad, true )
guiSetVisible ( wylogowania, true )
end)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 17:06


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

addEventHandler[...] dodajesz w funkcji kt?ra Ci da?em.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 17:17


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

A m?g?by? mi to co trzeba wrzuci? w kod. Bo ju? si? pogubi?em.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 17:21


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

spawn guiCreateButton(50322231750"SPAWN G??WNY"falseguiSetFont(spawn"default-bold-small"urzad guiCreateButton(50331931750"URZ?D"falseguiSetFont(urzad"default-bold-small"wylogowania guiCreateButton(50341531750"MIEJSCE WYLOGOWANIA"falseguiSetFont(wylogowania"default-bold-small"guiSetVisible spawnfalse guiSetVisible urzadfalse guiSetVisible wylogowaniafalse ) 

function panel() 
dxDrawRectangle(493180337312tocolor(000235), falsedxDrawText("Wybierz Spawn"517159806203tocolor(255255255255), 1.20"bankgothic""left""top"falsefalsetruefalsefalseend 



addEventHandler "onClientPlayerLogin"root, function() 
addEventHandler "onClientRender"rootpanel guiSetVisible spawntrue guiSetVisible urzadtrue guiSetVisible wylogowaniatrue end)


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 17:32


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

W db3 nic, a panel nadal si? nie wy?wietla...

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 17:38


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Nie nada?e? parent?w dla button?w.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-06-30, 17:42


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

spawn guiCreateButton(50322231750"SPAWN G??WNY"falseguiSetFont(spawn"default-bold-small"urzad guiCreateButton(50331931750"URZ?D"falsespawnguiSetFont(urzad"default-bold-small"wylogowania guiCreateButton(50341531750"MIEJSCE WYLOGOWANIA"falsespawnguiSetFont(wylogowania"default-bold-small"guiSetVisible spawnfalse guiSetVisible urzadfalse guiSetVisible wylogowaniafalse ) 

function panel() 
dxDrawRectangle(493180337312tocolor(000235), falsedxDrawText("Wybierz Spawn"517159806203tocolor(255255255255), 1.20"bankgothic""left""top"falsefalsetruefalsefalseend 



addEventHandler "onClientPlayerLogin"root, function() 
addEventHandler "onClientRender"rootpanel guiSetVisible spawntrue guiSetVisible urzadtrue guiSetVisible wylogowaniatrue end)
Dobrze?

Postaw piwo autorowi tego posta
 

 
Tagi: okno :: zalogowaniu
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