BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
GUIEditor = {
button = {},
window = {},
edit = {},
label = {}
}
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
GUIEditor . window [ 1 ] = guiCreateWindow ( 385 , 338 , 1222 , 458 , "Prosz? si? zalogowa? " , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
guiSetProperty ( GUIEditor . window [ 1 ], "CaptionColour" , "FF1313EB" )
GUIEditor . label [ 1 ] = guiCreateLabel ( 21 , 27 , 293 , 87 , "Login" , false , GUIEditor . window [ 1 ])
guiSetFont ( GUIEditor . label [ 1 ], "sa-gothic" )
guiLabelSetColor ( GUIEditor . label [ 1 ], 19 , 19 , 235 )
GUIEditor . label [ 2 ] = guiCreateLabel ( 21 , 275 , 293 , 87 , "Haslo" , false , GUIEditor . window [ 1 ])
guiSetFont ( GUIEditor . label [ 2 ], "sa-gothic" )
guiLabelSetColor ( GUIEditor . label [ 2 ], 19 , 19 , 235 )
GUIEditor . edit [ 1 ] = guiCreateEdit ( 321 , 39 , 432 , 65 , "" , false , GUIEditor . window [ 1 ])
GUIEditor . edit [ 2 ] = guiCreateEdit ( 324 , 285 , 432 , 65 , "" , false , GUIEditor . window [ 1 ])
GUIEditor . button [ 1 ] = guiCreateButton ( 329 , 142 , 230 , 92 , "Zaloguj si?" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 1 ], "NormalTextColour" , "FF1313EB" )
GUIEditor . button [ 2 ] = guiCreateButton ( 636 , 142 , 230 , 92 , "Zarejestruj si?" , false , GUIEditor . window [ 1 ])
guiSetProperty ( GUIEditor . button [ 2 ], "NormalTextColour" , "FF1313EB" )
GUIEditor . label [ 3 ] = guiCreateLabel ( 871 , 29 , 332 , 407 , "Login panel by : Trevovsky (in.TrevoR)" , false , GUIEditor . window [ 1 ])
guiSetFont ( GUIEditor . label [ 3 ], "sa-header" )
guiLabelSetColor ( GUIEditor . label [ 3 ], 253 , 0 , 0 )
guiLabelSetHorizontalAlign ( GUIEditor . label [ 3 ], "left" , true )
end
)
function okno ()
local vehicle = getPedOccupiedVehicle ( getLocalPlayer ())
if ( guiGetVisible ( okno )) then
showCursor ( false )
guiSetVisible ( okno , false )
else
if isCursorShowing () then return end
if vehicle and getVehicleController ( vehicle ) == getLocalPlayer () then
showCursor ( true )
guiSetVisible ( okno , true )
end
end
end
addEventHandler ( "onPlayerLogin" , getRootElement (),
jak dodac do tego funkcje : zalogowanie , zarejestrowanie , sprawdzenie danych , zamkniecie okna po zalogowaniu
Latw piwko do zdobycia !