Sziasztok. Mi lehet ebben az account scriptben a probléma? Mert nem lehet regisztrálni , se bejelentkezni! Válaszokat előre is köszönöm!
local mysql = exports.mysql
local scriptVer = exports.global:getScriptVersion()
local salt = \"vgrpkeyscotland\"
-- Gay beta code
local hasBeta = { }
function UserAccountLoggedOut()
exports[\'anticheat-system\']:changeProtectedElementDataEx(client, \"gameaccountloggedin\", 0, true)
end
addEvent(\"account:loggedout\", true)
addEventHandler(\"account:loggedout\", getRootElement(), UserAccountLoggedOut)
function UserLoggedOut()
exports[\'anticheat-system\']:changeProtectedElementDataEx(source, \"loggedin\", 0, true)
end
addEvent(\"player:loggedout\", true)
addEventHandler(\"player:loggedout\", getRootElement(), UserLoggedOut)
function UserLoggedOutAll()
exports[\'anticheat-system\']:changeProtectedElementDataEx(client, \"loggedin\", 0, true)
exports[\'anticheat-system\']:changeProtectedElementDataEx(client, \"gameaccountloggedin\", 0, true)
end
addEvent(\"accountplayer:loggedout\", true)
addEventHandler(\"accountplayer:loggedout\", getRootElement(), UserLoggedOutAll)
function informServerHasBeta()
hasBeta[client] = true
end
addEvent(\"hasBeta\", true)
addEventHandler(\"hasBeta\", getRootElement(), informServerHasBeta)
function beta(thePlayer)
if ( exports.global:isPlayerAdmin(thePlayer)) then
local count = 0
for k,v in pairs(hasBeta) do
count = count + 1
end
exports.global:sendMessageToAdmins(\"> \" .. count .. \" people are running Sapphire Beta.\")
end
end
addCommandHandler(\"beta\", beta)