1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-------------------------------------------------------------------
-- This file is where your Lua server scripts go! --
-- --
-- There are some sample scripts availabe! Just remove the --
-- comments ("--") in front of the dofile-lines to activate them!--
-- All samples are stored in subtables of the Lua table "sample" --
-- Do not use the "sample" table when writing own scripts! --
-- --
-- You can find&upload additional scripts at UnrealSoftware.de: --
-- EN: http://www.unrealsoftware.de/files_cat.php?cat=15&lan=2 --
-- --
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --
-- !!!Read sys/lua/info.txt for a CS2D Lua command reference!!!! --
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --
-- --
-- Enjoy! :D --
-------------------------------------------------------------------
--dofile("sys/lua/samples/advertise.lua") -- sample.ads [Just a welcome message + Advertising every minute] hooks: join, minute
--dofile("sys/lua/samples/badwords.lua") -- sample.badwords [A very simple badwords filter. Kicks players who use bad words] hooks: say
--dofile("sys/lua/samples/sayfunctions.lua") -- sample.sayfuncs [Additional say functions like date, time, idlers etc.] hooks: say
--dofile("sys/lua/samples/utsfx.lua") -- sample.ut [Adds UT Sounds like Humiliation, Doublekill, Multikill, etc.] hooks: startround, kill
--dofile("sys/lua/samples/console.lua") -- sample.console [Adds console commands "myserverinfo" and "healthlist"] hooks: parser
--dofile("sys/lua/samples/regonly.lua") -- sample.regonly [Only registered players are allowed to join a team] hooks: team
--dofile("sys/lua/samples/classes.lua") -- sample.classes [Different player classes with different weapons] hooks: team,menu,spawn,buy,walkover,drop,die,serveraction
--dofile("sys/lua/samples/fastplayers.lua") -- sample.fast [Make all players faster] hooks: spawn
--dofile("sys/lua/samples/gungame.lua") -- sample.gg [Simple Gun Game Mod] hooks: startround,join,spawn,kill,buy,walkover,drop,die
--dofile("sys/lua/samples/glowingplayers.lua") -- sample.glowing [Make all players glow using the Lua image commands] hooks: startround
--dofile("sys/lua/samples/undestroyable.lua") -- sample.undestroyable [Makes all dynamic objects undestroyable] hooks: objectdamage
addhook("second","autorestart")
function autorestart()
parse("sv_restart 10")
freehook("second","autorestart")
end