Jump to content

[REL] Simple Script Saving / Starting


[PXG]Blue

Recommended Posts

Posted (edited)

Hello Community!

PUT SUGGESTIONS/BUG REPORTS HERE

Today i want to show you a small but very useful script, its for people that often need to shut down / restart their servers, it makes it easier and faster to get everything started again, basically, how it works:

Once all resources are Started, you type "/getRunningResources" in chat, it will save it to the XML file, if the server crashes, just start my Resource and type "/loadResources"

Requirements:

The Resource NEEDS permissions OR and accepted ACLRequest to start Resources

I will of course check the topic, but I will use github more often

I Suggest shutting down my script after starting the resources, as these commands can be used to slow down the server extremely!

Commands / Arguments:

"/getRunningResources true " = save to xml and save for mtaserver.conf, you can find the code to put into the mtaserver.conf in a file called 'mtaserver.txt', copy the content out of it and paste it into your mtaserver.conf file!

"/getRunningResources" only save to xml

"/loadResources" Load Resources ( if saved to xml before )

CODE IS NOW ON GITHUB

Have Fun!

Edited by Guest

( Renamed from BeaTzZ to [PXG]Blue )

Looking for a Scripter that can make you free / Paid Scripts with a negotiable price?

Look no further!

add me on skype: phoenix_beatzz

My GitHub

Posted
mtaserver.conf do that too but good job

I know it works nearly the same, but i had problems adding over 50 scripts to it and adding every single one to it, my script does collect all scripts automaticly.

( Renamed from BeaTzZ to [PXG]Blue )

Looking for a Scripter that can make you free / Paid Scripts with a negotiable price?

Look no further!

add me on skype: phoenix_beatzz

My GitHub

Posted

I know it works nearly the same, but i had problems adding over 50 scripts to it and adding every single one to it, my script does collect all scripts automaticly.

Yes, it stay a great idea

  • MTA Team
Posted

Great idea, maybe add a function to output the same but for the mtaserver.conf format would be great! So then if we wish to directly add them to the mtaserver.conf we wouldn't waste that much time ;)

Keep it up!

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
Posted
maybe add a function to output the same but for the mtaserver.conf format would be great! So then if we wish to directly add them to the mtaserver.conf we wouldn't waste that much time ;)

This idea is also good, to add them directly to the mtaserver.conf but if im not wrong i don't think its possible

Posted
maybe add a function to output the same but for the mtaserver.conf format would be great! So then if we wish to directly add them to the mtaserver.conf we wouldn't waste that much time ;)

This idea is also good, to add them directly to the mtaserver.conf but if im not wrong i don't think its possible

Its not possible to add it to MTAserver.conf

But i made a version that saves it in mtaserver.conf format in an TXT file, copy and paste :D

( Renamed from BeaTzZ to [PXG]Blue )

Looking for a Scripter that can make you free / Paid Scripts with a negotiable price?

Look no further!

add me on skype: phoenix_beatzz

My GitHub

Posted
You cannot access by
fileOpen("../mtaserver.conf") 

?

I tried that but it doesnt seem to work, maybe you have better luck than me figuring out.

( Renamed from BeaTzZ to [PXG]Blue )

Looking for a Scripter that can make you free / Paid Scripts with a negotiable price?

Look no further!

add me on skype: phoenix_beatzz

My GitHub

Posted
Hmm. Can you try this
../../mtaserver.conf 

Assuming this path:

resources/mtaserverconfigurator/server.lua 

Tried it, seems the mtaserver.conf is not accessable via script..

( Renamed from BeaTzZ to [PXG]Blue )

Looking for a Scripter that can make you free / Paid Scripts with a negotiable price?

Look no further!

add me on skype: phoenix_beatzz

My GitHub

  • 2 weeks later...
Posted

Good work

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

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...