With scripts you can interact with the game, you have access to many events such as when a players speaks, joins a game, caps a flag, etc. You can put your code on those evets to do what you want (if it's possible)
To make them you edit the files on the script folder of the soldat dedicated server. If you are really interested you should take a look here:
http://enesce.com/help