Witam, mam problem, tym razem tego typu ?e w moim kodzie gdzie mam login panel chchia?bym wgra? linijk? z miejscem spawnu w frakcjach i firmach. Jak to zrobi??
--------------------------
-- Login panel by *******
--------------------------
-- Login handling
function loginPlayer(username,password,enableKickPlayer,attemptedLogins,maxLoginAttempts)
if not (username == "") then
if not (password == "") then
local account = getAccount ( username, password )
if ( account ~= false ) then
logIn (source, account, password)
outputChatBox ("#0000FF* #FFFFFFPomyslnie Zalogowano",source,255,255,255,true)
triggerClientEvent (source,"hideLoginWindow",getRootElement())
triggerClientEvent(source,"ShowStaty",getRootElement())
local playeraccount = getPlayerAccount ( source )
local imie = getElementData(source, "tempdata.Imie")
local nazwisko = getElementData(source, "tempdata.Nazwisko")
if imie and nazwisko then
setAccountData ( playeraccount, "Imie", imie )
setAccountData ( playeraccount, "Nazwisko", nazwisko )
en...