sv_name [HULK] Teeworlds (DeathMatch) sv_gametype dm sv_warmup 10 sv_map dm2 sv_maprotation dm2 Bridge ctf2 dm1 dm6 dm_m1v1 dm_twe dm_zyx lost tetris ctf1 ctf_twe dm_air dm_xno1 fhabyss pirates towers-v2.5 sv_max_clients 10 sv_scorelimit 30 sv_rcon_password ******
sv_name [HULK] Teeworlds [INSTAGIB] sv_gametype dm sv_warmup 10 sv_map dm2 sv_maprotation Bridge ctf2 dm1 dm6 dm_m1v1 dm_twe dm_zyx lost tetris ctf1 ctf_twe dm2 dm_air dm_xno1 fhabyss pirates towers-v2.5 sv_max_clients 20 sv_scorelimit 30 sv_port 8404 sv_rcon_password ****** sv_instagib 1 sv_instagib_explode 1 sv_protect 3 sv_kills_send 0 sv_spree 1 tune laser_reach 1000000
#!/bin/bash
if [ -z $1 ]
then
echo "Please supply an argument"
echo "Usage: $0 {start|stop|restart}"
exit 1
fi
case "$1" in
"start" )
echo "Starting teeworlds"
DIR=/home/teewar/teeworlds-instagib/
SRV=/home/teewar/teeworlds-instagib/teeworlds_srv
CFG=/home/teewar/teeworlds-instagib/hulkwar.cfg
if [ -f $SRV ] ; then
if [ -f $CFG ] ; then
cd $DIR
nohup sudo -u teewar $SRV -f $CFG &
echo "Started teeworlds instagib"
else
echo "$CFG not found"
fi
else
echo "$SRV not found"
fi
DIR=/home/teewar/teeworlds/
SRV=/home/teewar/teeworlds/teeworlds_srv
CFG=/home/teewar/teeworlds/hulkwar.cfg
if [ -f $SRV ] ; then
if [ -f $CFG ] ; then
cd $DIR
nohup sudo -u teewar $SRV -f $CFG &
echo "Started teeworlds"
else
echo "$CFG not found"
fi
else
echo "$SRV not found!"
fi
;;
"start-dm" )
echo "starting Teeworlds Deathmatch"
DIR=/home/teewar/teeworlds/
SRV=/home/teewar/teeworlds/teeworlds_srv
CFG=/home/teewar/teeworlds/hulkwar.cfg
if [ -f $SRV ] ; then
if [ -f $CFG ] ; then
cd $DIR
nohup sudo -u teewar $SRV -f $CFG &
echo "Started teeworlds"
else
echo "$CFG not found"
fi
else
echo "$SRV not found!"
fi
;;
"start-instagib" )
echo "Starting Teeworlds Instagib"
DIR=/home/teewar/teeworlds-instagib/
SRV=/home/teewar/teeworlds-instagib/teeworlds_srv
CFG=/home/teewar/teeworlds-instagib/hulkwar.cfg
if [ -f $SRV ] ; then
if [ -f $CFG ] ; then
cd $DIR
nohup sudo -u teewar $SRV -f $CFG &
echo "Started teeworlds instagib"
else
echo "$CFG not found"
fi
else
echo "$SRV not found"
fi
;;
"stop" )
killall teeworlds_srv
;;
"restart" )
echo "Stopping teeworlds"
$0 stop
sleep 30
echo "Starting teeworlds"
$0 start
;;
*)
echo "Usage: $0 {start|start-dm|start-instagib|stop|restart}"
exit 1
;;
esac