Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: bym
1. Bym mógł spawnować się w firmie :)
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??

KOD:
[code]
createTeam ( "Truckerzy", 0, 255, 0 )
createTeam ( "Pogotowie", 255, 200, 120 )
createTeam ( "Policja", 20, 20, 230 )
createTeam ( "Pomoc drogowa", 255, 0, 255 )
createTeam ( "Taxi", 255, 255, 0 )
createTeam ( "RPG-Trans", 0, 255, 0 )


--------------------------
-- 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...