Giter VIP home page Giter VIP logo

soldat-shell's Introduction

Soldat C Shell

C Shell scripts for Soldat dedicated servers.

Scripts descriptions

rcon_kills: Count the kills for each player and display a message after each defined row has been reached.
rcon_announce: Periodically display a set of three messages after five minutes + two other messages, after 30 seconds, counted from the five minutes.
rcon_commands: Execute commands requested by a player; currently, the commands are: !date (date Unix command), !info (uname -a Unix command), !script (script information; credits), !red or !1 (change the player's team to Alpha), !blue or !2 (change the player's team to Bravo), !spec or !5 (spectate; become a spectator).
rcon_balancer: Check for inconsistency in Alpha and Bravo teams and automatically switch the team of the last player who joined.

How to use

Install socat, change the scripts' execution permissions and run the following:
./rcon_announce <password> | nc <server ip> <port> > /dev/null &
socat exec:"./rcon_commands <password>" tcp:<server ip>:<port>,crnl &
socat exec:"./rcon_kills <password>" tcp:<server ip>:<port>,crnl &
socat exec:"./rcon_balancer <password>" tcp:<server ip>:<port>,crnl &

Notes

Windows users may use Cygwin to run the scripts (but they haven't been tested on this platform; testing is required).

On Unix and Unix-like operating systems, it is recommended to have a tmpfs mount on /tmp.

soldat-shell's People

Contributors

krush206 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.