#!/bin/sh #A graphical start-up script for a Countestrike Dedicated Server. #As a small token of appreciation, to my friend trust_no_one. #enjoy. #The default values dpl=6 dmap="de_dust2" #The maplist used maplist="paparomap paparomap2 paparomap3" numopts="5 4 3 2 1" #The selection process maxpl=`zenity --entry --text "Select # of players" --entry-text "$dpl" $numopts` csmap=`zenity --entry --text "Select a map" --entry-text "$dmap" $maplist` #Startup with these settings sudo ./hlds_run -game cstrike +ip 192.168.1.64 +sv_lan 1 -nomaster +maxplayers $maxpl +map $csmap