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: setaccoundata
1. setAccounData
Witajcie mam taki problem lecz robie 1 skrypt na dawanie licencji na bron przez urz?dnika lecz nie dzia?a:


addEvent 
("Downnn", true)
addEventHandler ("Downnn", root, 
function (
cel, bool, thePlayer)
if 
thePlayer then
konto 
= getPlayerAccount(cel)
setAccountData (konto, "Liccencja11111", bool)
exports.informacje:pokazInfo (cel, "info", "Wydales Licencje. Gratulacje")
else
exports.informacje:pokazInfo (cel, "info", "Ten Gracz Juz Posiada licencje")
end
end
)


Help me
2. setAccounData
Witajcie mam taki problem gdy?:


addEvent 
("TYP1", true)
addEventHandler ("TYP1", getRootElement(), function (cel,thePlayer,cena)
local konto = getPlayerAccount (cel)
if 
cel then
setAccountData 
(konto, "TYPP1", true)
outputChatBox ("Dosta?e? licencje na typ Broni nr. 1", thePlayer)
else
outputChatBox ("Nie posiadasz Kasy", thePlayer)
end
end
)


Chc? zrobi? licencje na bron lecz mam problem z setAccountData i to samo z getAccoutData pierdziele si? z tym od rana :D a tu sprawdzanie czy gracz ma licencje na born:

addEvent ("SprawdzTYP1", true)
addEventHandler ("SprawdzTYP1", getRootElement(), function (thePlayer, cel)
local kontko = getPlayerAccount (thePlayer)
if 
kontko then
local typ1 
= getAccountData (kontko, "TYPP1")
outputChatBox ("Twoje konto przesz?o weryfikacje")
triggerClientEvent ("OKNO", root, localPlayer, "")
else
outputChatBox ("Nie posiadasz licencj na ten typ Broni")
end
end
)