Jump to content
  • 0

please help me ! urgently


Imax

Question

6 answers to this question

Recommended Posts

  • 0

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

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

graphics_lol_443148.gif

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...