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: konto
1. konto frakcyjne
siema potrzebuje pomocy z zrobieniem konta frakcyjnego mianowicie ?eby frakcje mog?y z nich np wyjmowa? kase z mandad?w itp
2. konto goscia
Witam, c?? tu jest zle? Po loginie, i jak sie data zmienia wywala mi pierdyliard googolplexianth?w b??d?w xD. Czyli element date ustawia np. na dru?yny, markery, pickupy itd. Dzi?ki za pomoc!

function roznicaskilla()
    if (
not isGuestAccount(getPlayerAccount(source))) then
    local zabojstwa 
= (tonumber(getElementData(source"Zabojstwa") or 0))
    
local smierci = (tonumber(getElementData(source"Smierci") or 0))
    
obliczenia = (tonumber((zabojstwa smierci)))
    
tonumber(setElementData(source"Skill:gracz"obliczenia))
end
end
addEventHandler
("onElementDataChange"getRootElement(), roznicaskilla)
addEventHandler("onPlayerLogin"getRootElement(), roznicaskilla)
3. Konto ACL
Siemka! - mam pytanie jakie has?o jest do user.Console
w MTA
Licz? na szybk? odpowied?.
4. na ten serial jest juz zalozone konto
Co robi? gdy pojawia si? taki komunikat co w temacie?

Paczka East City, kolega nie mo?e zalozy? konta ;P
5. triggerowanie i nieznalezione konto
Witam mam taki kodzik:

C:

function kupBaze()
    if 
source==buttonKup then
        local mail 
tostring(guiGetText(editEmail))
        if 
guiCheckBoxGetSelected(checkDuza)==true then
            triggerServerEvent 
"kupbaze"localPlayer"DuzaBaza"mail)
        elseif 
guiCheckBoxGetSelected(checkSrednia)==true then
            triggerServerEvent 
"kupbaze"localPlayer"SredniaBaza"mail)
        elseif 
guiCheckBoxGetSelected(checkMala)==true then
            triggerServerEvent 
"kupbaze"localPlayer"MalaBaza"mail)
        else
        
end
    
else
    
end
end
addEventHandler
("onClientGUIClick",getRootElement(),kupBaze)



S:

function createBase(RodzajBazy,Email)
    
local accgetPlayerAccount(localPlayer)
    
local PP getAccountData(acc,"PP") or 0
    
if RodzajBazy=="DuzaBaza" then
        
if PP>=30 then
            outputChatBox
("Kupiles.."player)
        
        else
        
outputChatBox("Nie stac cie"player)
        
end
    
else
    
end
end
addEvent
"kupbaze"true )
addEventHandler"kupbaze"rootcreateBase )



W debugscript'cie wyskakuje mi b??d z getPlayerAccount bo argument pierwszy to nil... Jaki element musze tam wstawi? aby dzia?a?o? I czy przy argumentach w funkcji te? musze zadeklarowa? nowy element jako gracza? Prosz? o pomoc :/
6. Nie Działa Konto
Witam Mam Problem gdy wchodze na swoj serwer i przystepuje do logowania wywala mi mta a gdy wchodze na inne konto pod innym nickiem dziala normalnie prosze o pomoc :D
7. Konto premium ItemShop ServerProject
Witajcie, mam problem z automatycznym kupnem konta premium na serwerze. Ot?? chc? zrobi? to za pomoc? ItemShopu, kt?ry oferuj? ServerProject. Dodaje nowy item parametr i komend?, kt?ry si? wysy?a przez konsol?, lecz otrzymuj? taki oto b??d:
" WARNING: dutyadmin/s_utility.lua:6: Bad argument @ 'getPlayerSerial' [Expected player at argument 1, got console] " nie mam poj?cia jak da? konsoli serial lub co? w tym stylu..
8. YA konto premium
Witam,
Chcia?bym pozmienia? ceny premium na serwerze jednak nie wiem co pozmienia? w kodzie. Chcia?bym wprowadzi? teraz trzy rodzaje kont.

AMOUNT: 3, 5, 9

Kod:

[lua]
--[[
Code write by Yolos. Permissions to use only by agree from Yolos.
]]
function getPremiumDate(plr)
local queryA=exports['ogrpg-db']:dbGet("SELECT * FROM ogrpg_users WHERE id=? AND premiumdate>NOW() LIMIT 1", getElementData(plr,"player:uid"))
if (queryA and #queryA > 0) then
return queryA[1].premiumdate
end
return false
end


function setPremiumDay(plr,days)
if getPremiumDate(plr) then
local queryA=exports['ogrpg-db']:dbSet(string.format("UPDATE ogrpg_users SET premiumdate = DATE(premiumdate) + INTERVAL %d DAY WHERE id=%d",days,getElementData(plr,"player:uid")))
return end
local queryA=exports['ogrpg-db']:dbSet(string.format("UPDATE ogrpg_users SET premiumdate = DATE(curdate()) + INTERVAL %d DAY WHERE id=%d",days,getElementData(plr,"player:uid")))
end


addEvent("premiumActive", true)
addEventHandler("premiumActive", root, function(code,amount)
outputDebugString(code..":"..amount)
local query=string.format("XXXXXXXXXXXXX", tostring(amount),code,string.format("UID:"..getElementData(client,"player:uid")))
fetchRemote( query, result,"",false, client,amount)
end)

function result(responseData, errno, playerToReceive,amount)
i...
9. Blokowanie zalogowania sie na to samo konto w tym samym czas
Witam potrzebuje pomocy, jak zablokowac logowanie sie na to samo konto w tym samym czasie w sensie jesli gracz jeden jest zalogowany ?eby drugi nie mogl sie zalogowac kod tutaj:
[lua]addEvent("logging:checkAccount", true)
addEventHandler("logging:checkAccount", resourceRoot, function(login,pass)
local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE login=?", login)
if result and #result > 0 then
if result[1].login == login and result[1].pass == md5(pass) then
local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Ryjek"),login)
triggerClientEvent(client, "logging:result", resourceRoot, false, "Zaaktualizowano twoj profil! Zaloguj sie ponownie!.")
return
end
if result[1].login == login and result[1].pass == teaEncode(pass,"Ryjek") then
setElementData(getPlayerFromName(login),"zalogowany",true)
setPlayerName(client, login)
setElementData(client, "player:uid", result[1].id)
triggerClientEvent(client, "logging:result", resourceRoot, true, nil)
triggerEvent("SprawdzDom",root,client)
if result[1].register_serial == false then
local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET register_serial=? WHERE login=?",getPlayerSerial(client),login)
end
local logs=exports["ogrpg-db"]:d...
10. Xzzyrp - brak reakcji przy logowaniu na konto testowe
Mam problem posiadam gamemod xzzyrp wszytko dzia?a pr?cz logowania