From 25d8e2f1187f33d602f094a0811623bdd0d43485 Mon Sep 17 00:00:00 2001 From: Alexander Hurd Date: Wed, 12 Oct 2016 03:13:08 -0400 Subject: [PATCH] adding config --- SanAndreasMultiplayer/cfg/lgsm-default.cfg | 17 +++++++++++++++++ lgsm/functions/install_config.sh | 6 ++++++ 2 files changed, 23 insertions(+) create mode 100644 SanAndreasMultiplayer/cfg/lgsm-default.cfg diff --git a/SanAndreasMultiplayer/cfg/lgsm-default.cfg b/SanAndreasMultiplayer/cfg/lgsm-default.cfg new file mode 100644 index 000000000..558aeecbb --- /dev/null +++ b/SanAndreasMultiplayer/cfg/lgsm-default.cfg @@ -0,0 +1,17 @@ +echo Executing Server Config... +lanmode 0 +rcon_password +maxplayers 50 +port 7777 +hostname +gamemode0 grandlarc 1 +filterscripts base gl_actions gl_property gl_realtime +announce 0 +query 1 +weburl www.sa-mp.com +maxnpc 0 +onfoot_rate 40 +incar_rate 40 +weapon_rate 40 +stream_distance 300.0 +stream_rate 1000 diff --git a/lgsm/functions/install_config.sh b/lgsm/functions/install_config.sh index 5a856f8e6..e829d153b 100644 --- a/lgsm/functions/install_config.sh +++ b/lgsm/functions/install_config.sh @@ -401,6 +401,12 @@ elif [ "${gamename}" == "Rust" ]; then wget -N /dev/null ${githuburl}/Rust/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq sleep 1 fn_defaultconfig +elif [ "${gamename}" == "San Andreas Multiplayer" ]; then + echo -e "downloading server.cfg...\c" + wget -N /dev/null ${githuburl}/SanAndreasMultiplayer/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq + sleep 1 + fn_defaultconfig + fn_userinputconfig elif [ "${gamename}" == "Sven Co-op" ]; then echo -e "downloading lgsm-default.cfg...\c" wget -N /dev/null ${githuburl}/SvenCoop/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq