Explorar o código

adding config

Alexander Hurd %!s(int64=9) %!d(string=hai) anos
pai
achega
25d8e2f118

+ 17 - 0
SanAndreasMultiplayer/cfg/lgsm-default.cfg

@@ -0,0 +1,17 @@
+echo Executing Server Config...
+lanmode 0
+rcon_password <rconpassword>
+maxplayers 50
+port 7777
+hostname <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

+ 6 - 0
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