في خطأ بملف سيرفر ما انتبهت له ذذ ,
addEvent("Login",true)
addEventHandler("Login",root,
function( userName,Password )
local v = getAccount ( userName, Password )
if ( v ~= true) then
logIn(client,v,Password)
outputChatBox ( "Login with account : [ " .. userName .. " ]", client, 255, 255, 0 , true )
triggerClientEvent("onSpecialEvent",client)
fadeCamera(source,true)
else
outputChatBox("Error : In login",client,255,255,255,true)
end
end
)
function Join()
fadeCamera(source,false)
end
addEventHandler("onPlayerJoin",root,Join)
addEvent("Register",true)
addEventHandler("Register",root,
function(user,pass)
Add = addAccount( user, pass )
if Add ~= false then
outputChatBox ( "Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login", source )
else
outputChatBox ( "Error creating account, contact the server admin", source )
end
end
)