Imax Posted January 8, 2013 Share Posted January 8, 2013 Hi all audiences! Can you help me with something please I want to put my Freeroam access my server just for admin Link to comment
0 Imax Posted January 8, 2013 Author Share Posted January 8, 2013 and how can I do it? Link to comment
0 uhm Posted January 8, 2013 Share Posted January 8, 2013 Hi I came as soon as possible, would it help if only people with the password could join? Link to comment
0 Imax Posted January 8, 2013 Author Share Posted January 8, 2013 Hi I came as soon as possible, would it help if only people with the password could join? Yes, if you speak the password of Admin Link to comment
0 uhm Posted January 8, 2013 Share Posted January 8, 2013 Yes, then you can go into MTA San Andreas 1.3\server\mods\deathmatch\mtaserver.conf Look for line and put the password between like the_admin_pass Restart server Now when someone wants to join, they must type this password (the_admin_pass) first Link to comment
0 Imax Posted January 8, 2013 Author Share Posted January 8, 2013 No, I do not mean that! I just want that the Admin can enter Freeroam (f1) GameMods [play] Link to comment
0 uhm Posted January 8, 2013 Share Posted January 8, 2013 Oooh! Okay but you must change some scripts then. Go to MTA San Andreas 1.3\server\mods\deathmatch\resources\[gameplay]\freeroam Make fr_client.lua around line 1448: Plz note is comments on script, please read addEventHandler('onClientResourceStart', g_ResRoot, function() ---- (1) CUT (ctrl+x) everything from here fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me) ------ till here ----- !! so if correct this part is empty from function() till end end ) --- (2) paste below it -- (3) add this in front of pasted code: addEvent( "onCanUseFreeroam", true ) addEventHandler( "onCanUseFreeroam", getRootElement(), function () fadeCamera(true) setTimer(getPlayers, 1000, 1) bindKey('f1', 'down', toggleFRWindow) createWindow(wndMain) hideAllWindows() guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me)) guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me)) setJetpackMaxHeight ( 9001 ) triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me) -- (3) add this after pasted code: end) go into fr_server.lua add at the bottom of script: addCommandHandler ( 'freeroamplx', function(playerSource) accountname = getAccountName (getPlayerAccount(playerSource)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then triggerClientEvent (playerSource, 'onCanUseFreeroam') end end ) if admin /logged in and type /freeroamplx, can has not tested lol if if it doesnt work, is a good time to start learning and fix it yerself Link to comment
Question
Imax
Hi all audiences!
Can you help me with something please
I want to put my Freeroam access my server just for admin
Link to comment
6 answers to this question
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