function Loguj_Server(gracz,username, password)
local account = getAccount(username, password)
if (account ~= false) then
if (logIn(gracz, account, password) == true) then
triggerClientEvent(gracz,"hideLoginWindow",getRootElement())
outputChatBox("[GameWorld] Pomyslnie zalogowano na konto",gracz,255,255,255,true)
else
outputChatBox("[GameWorld] System nie moze za?adowac konta przepraszamy za utrudnienia.",gracz,255,255,255,true)
end
else
outputChatBox("[GameWorld] Poda?es z?y login lub has?o.",gracz,255,255,255,true)
end
end
addEvent("submitLogin",true)
addEventHandler("submitLogin",getRootElement(),Loguj_Server)
function Rejestruj_Server(gracz,username, password)
local account = getAccount(username, password)
if (account ~= false) then
outputChatBox("[GameWorld] Takie konto ju? istnieje na serwerze prosze wybra? inne.",gracz,255,255,255,true)
else
account = addAccount(username, password)
setElementData(gracz,"konto_login",username)
outputChatBox("[GameWorld] Konto zosta?o pomyslnie zarejstrowane.", gracz, 0, 255, 0)
end
end
function setCameraOnPlayerJoin()
fadeCamera(source, true, 10)
setCameraMatrix(source, -2013.90, 920.48, 58.83, -918.42474365234, 99.881813049316)
end
addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin)
function Loguj_Server(gracz,username, password)
local account = getAccount(username, password)
if (account ~= false) then
if (logIn(gracz, account, password) == true) then
triggerClientEvent(gracz,"hideLoginWindow",getRootElement())
outputChatBox("[GameWorld] Pomyslnie zalogowano na konto",gracz,255,255,255,true)
else
outputChatBox("[GameWorld] System nie moze za?adowac konta przepraszamy za utrudnienia.",gracz,255,255,255,true)
end
else
outputChatBox("[GameWorld] Poda?es z?y login lub has?o.",gracz,255,255,255,true)
end
end
addEvent("submitLogin",true)
addEventHandler("submitLogin",getRootElement(),Loguj_Server)
function Rejestruj_Server(gracz,username, password)
local account = getAccount(username, password)
if (account ~= false) then
outputChatBox("[GameWorld] Takie konto ju? istnieje na serwerze prosze wybra? inne.",gracz,255,255,255,true)
else
account = addAccount(username, password)
setElementData(gracz,"konto_login",username)
outputChatBox("[GameWorld] Konto zosta?o pomyslnie zarejstrowane.", gracz, 0, 255, 0)
end
end
addEvent("submitRegister", true)
addEventHandler("submitRegister",getRootElement(), Rejestruj_Server)
function setCameraOnPlayerJoin()
fadeCamera(source, true, 10)
setCameraMatrix(source, -2013.90, 920.48, 58.83, -918.42474365234, 99.881813049316)
end
addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin)
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