From 22e5f14478e8e66fea3c18cff943de5234784525 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 30 Sep 2017 23:59:59 +0100 Subject: [PATCH] added samp details --- lgsm/functions/info_messages.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index 87b62f64e..78f1db000 100644 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -707,6 +707,16 @@ fn_info_message_rust(){ } | column -s $'\t' -t } +fn_info_message_samp(){ + echo -e "netstat -atunp | grep samp03svr" + echo -e "" + { + echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL" + echo -e "> Game/RCON\tINBOUND\t${port}\ttcp/udp" + } | column -s $'\t' -t +} + + fn_info_message_seriousengine35(){ echo -e "netstat -atunp | grep Sam3_Dedicate" echo -e "" @@ -977,6 +987,8 @@ fn_info_message_select_engine(){ fn_info_message_quake3 elif [ "${gamename}" == "Quake Live" ]; then fn_info_message_quakelive + elif [ "${gamename}" == "San Andreas Multiplayer" ]; then + fn_info_message_samp elif [ "${gamename}" == "Squad" ]; then fn_info_message_squad elif [ "${gamename}" == "TeamSpeak 3" ]; then