Chupakabra549 Posted July 24, 2013 Share Posted July 24, 2013 (edited) Это в server function registerPlayer ( source, commandName, password ) if ( password ~= "" and password ~= nil ) then local accountAdded = addAccount( getPlayerName(source), password ) if ( accountAdded ) then outputChatBox ( "Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login", source ) triggerClientEvent (player, "CloseRegisterPanel") else outputChatBox ( "Error creating account, contact the server admin", source ) end end end addCommandHandler ( "register", registerPlayer ) А это в client showCursor(true) function onLoginKlick() guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor.button[2], onLoginKlick, false) function closeLoginPanel() guiSetVisible ( GUIEditor.tabpanel[1] , false ) showCursor(false) end function registerPlayer ( source, commandName, password ) local username = guiGetText( GUIEditor.edit[1] ) local password = guiGetText( GUIEditor.edit[2] ) triggerServerEvent("register", getLocalPlayer(), getLocalPlayer(), username, password ) if ( password ~= "" and password ~= nil ) then end end addEventHandler("onClientGUIClick", GUIEditor.button[1], registerPlayer) Проблема в том, что не получается не зарегаться ни залогиниться Edited July 25, 2013 by Guest Link to comment
KruTolic_rus Posted July 25, 2013 Share Posted July 25, 2013 Находишь ACL группу "Admin" в ней добавляешь: "resource.имя ресурса"> Link to comment
Chupakabra549 Posted July 25, 2013 Author Share Posted July 25, 2013 Находишь ACL группу "Admin" в ней добавляешь: "resource.имя ресурса"> Когда я добавляю, я сохраняю, и запускаю сервер, но он заново все ставит! Link to comment
CocaColaBear Posted July 25, 2013 Share Posted July 25, 2013 Выключить сервер надо, добавить, сохранить и опять запустить. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now