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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
-------------------------------------------------------------------
-- 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! --
-- --
-- Enjoy! :D --
-------------------------------------------------------------------
-------------------------------------------------------------------
-- Mod: sample.ads --
-- Just a welcome message + Advertising every minute --
-- hooks: join, minute --
-------------------------------------------------------------------
-- dofile("sys/lua/samples/advertise.lua")
-------------------------------------------------------------------
-- Mod: sample.badwords --
-- A very simple badwords filter. Kicks players who use bad words--
-- hooks: say --
-------------------------------------------------------------------
-- dofile("sys/lua/samples/badwords.lua")
-------------------------------------------------------------------
-- Mod: sample.sayfuncs --
-- Some additional say functions like date, time, idlers etc. --
-- hooks: say --
-------------------------------------------------------------------
-- dofile("sys/lua/samples/sayfunctions.lua")
-------------------------------------------------------------------
-- Mod: sample.ut --
-- Adds UT Sounds like Humiliation, Doublekill, Multikill, etc. --
-- hooks: startround, kill --
-------------------------------------------------------------------
-- dofile("sys/lua/samples/utsfx.lua")
-------------------------------------------------------------------
-- Mod: sample.console --
-- Adds console commands "myserverinfo" and "healthlist" --
-- hooks: parser --
-------------------------------------------------------------------
-- dofile("sys/lua/samples/console.lua")
-------------------------------------------------------------------
-- Mod: sample.regonly --
-- Only registered players are allowed to join a team --
-- hooks: team --
-------------------------------------------------------------------
-- dofile("sys/lua/samples/regonly.lua")
-------------------------------------------------------------------
-- Mod: sample.classes --
-- Different player classes with different weapons --
-- hooks: team,menu,spawn,buy,walkover,drop,die,serveraction --
-------------------------------------------------------------------
-- dofile("sys/lua/samples/classes.lua")
-------------------------------------------------------------------
-- Mod: sample.fast --
-- Make all players faster --
-- hooks: spawn --
-------------------------------------------------------------------
-- dofile("sys/lua/samples/fastplayers.lua")
-------------------------------------------------------------------
-- Mod: sample.gg --
-- Simple Gun Game Mod --
-- hooks: startround,join,spawn,kill,buy,walkover,drop,die --
-------------------------------------------------------------------
-- dofile("sys/lua/samples/gungame.lua")
-------------------------------------------------------------------
-- Mod: sample.glowing --
-- Make all players glow using the Lua image commands --
-- hooks: startround --
-------------------------------------------------------------------
-- dofile("sys/lua/samples/glowingplayers.lua")
-------------------------------------------------------------------
addhook("join","j")
function j(p)
parse("setname "..p.." " Something")
end