Algo que seria muy util es que pongas /debugscript 3 dentro del juego y nos digas los errores que te da el script
EDIT: Intenta esto
function register_func ( player, username, passwort)
local acc = addAccount(username,passwort)
if acc then
logIn(player,acc,passwort)
outputChatBox("[sERVER]: #FFFFFFTe Haz Registrado Con Exito!",player, 0, 255, 0, true)
triggerClientEvent(player,"closeLoginPanel",player)
setAccountData(getPlayerAccount(player), "Nickname", getPlayerName(player))
else
outputChatBox("[ERROR]: #FFFFFFPonte En Contacto Con Algun Administrador!!",player, 255, 0, 0, true)
end
end
addEvent("register",true)
addEventHandler("register",getRootElement(),register_func)
function login_func ( player, username, passwort)
local acc = getAccount(username,passwort)
if acc then
logIn(player,acc,passwort)
outputChatBox("[sERVER]: #FFFFFFHaz Iniciado Secion Con Exito!",player, 0, 255, 0, true)
outputChatBox("Bienvenido #FFFFFF"..getPlayerName(player),player, 0, 255, 0, true)
triggerClientEvent(player,"closeLoginPanel",player)
local data = getAccountData(getPlayerAccount(player), "Nickname")
if data then
setPlayerName(player, data)
end
else
outputChatBox("[ERROR]: #FFFFFFTu Contraseña o Usuario Es Incorrecto!!",player, 255, 0, 0, true)
end
end
addEvent("login",true)
addEventHandler("login",getRootElement(),login_func)