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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
--------------------------------------------------
-- Simple Advertising by Unreal Software --
-- 22.02.2009 - www.UnrealSoftware.de --
--------------------------------------------------
if sample==nil then sample={} end
sample.ads={}
--------------------------------------
-- WELCOME MESSAGE ON JOIN --
--------------------------------------
addhook("join","sample.ads.join")
function sample.ads.join(p,t)
	msg2(p,"Welcome on my Server, "..player(p,"name").."!")
end
--------------------------------------
-- ADVERTISING EVERY MINUTE --
--------------------------------------
addhook("minute","sample.ads.minute")
function sample.ads.minute()
	msg("This server may close")
	msg("unexpectedly.")
	msg("Listen to admins!")
	msg("Say !help for help.")
end
--------------------------------------
-- Need Help? --
--------------------------------------
-- Say !help
addhook("say","help")
function help(id,txt)
	if(txt=="!help") then
	msg("Help:")
	msg("!drop 100 -- Drops 100 dollars")
	end
end
-----------------------
-- Fast Build -------
-----------------------
--[[
Made by teh Unrealsoftware.de User "Heavy"
Rule no 1: Do what ever you want with this script. But dont claim this as your own!
» Changelog:
[ADDED] disabling/enabling money
[FIXED] mines didn't work
[FIXED] building sometimes didn't work (if this still doesn't work ,try disabling other buildingluascripts)
[FIXED] you weren't able to see whose building it is/was
[CHANGED] code cleaned up a bit
ENABLE/DISABLE Stuff (Note: 1 means enabled and 0 means disabled ]]
fastbuild=1
unlimitedbuild=1
money=1
-- FastBuild:
addhook("build","fb")
function fb(id,type,x,y)
		function spawnobject()		
			parse("spawnobject "..type.." "..x.." "..y.." 0 0 "..player(id,"team").." "..id);
		end
		function checkmoney(mmoney)
			if(money==1) then
				parse("setmoney "..id.." "..player(id,"money")-mmoney);
			end
		end
if (fastbuild==1) then
			if(type==1) and (player(id,"money")>=300) then
				spawnobject()
				checkmoney(300)
			elseif(type==2) and (player(id,"money")>=500) then
				spawnobject()
				checkmoney(500)
			elseif(type==3) and (player(id,"money")>=1000) then
				spawnobject()
				checkmoney(1000)
			elseif(type==4) and (player(id,"money")>=2000) then
				spawnobject()
				checkmoney(2000)
			elseif(type==5) and (player(id,"money")>=3000) then
				spawnobject()
				checkmoney(3000)
			elseif(type==6) and (player(id,"money")>=1500) then
				spawnobject()
				checkmoney(1500)
			elseif(type==7) and (player(id,"money")>=5000) then
				spawnobject()
				checkmoney(5000)
			elseif(type==8) and (player(id,"money")>=5000) then
				spawnobject()
				checkmoney(5000)
			elseif(type==9) and (player(id,"money")>=5000) then
				spawnobject()
				checkmoney(5000)
			elseif(type==13) and (player(id,"money")>=3000) then
				spawnobject()
				checkmoney(3000)
			elseif(type==14) and (player(id,"money")>=3000) then
				spawnobject()
				checkmoney(5000)
			elseif(type==20) then -- Mines...
				spawnobject()
			end
return 1
		else
			return 0
end
end
-- UnlimitedBuild:
if (unlimitedbuild==1) then
parse('mp_building_limit "Barricade" 10000');
parse('mp_building_limit "Barbed Wire" 10000');
parse('mp_building_limit "Wall I" 10000');
parse('mp_building_limit "Wall II" 10000');
parse('mp_building_limit "Wall III" 10000');
parse('mp_building_limit "Gate Field" 10000');
parse('mp_building_limit "Turret" 10000');
parse('mp_building_limit "Dispenser" 10000');
parse('mp_building_limit "Supply" 10000');
parse('mp_building_limit "Teleporter Entrance" 10000');
parse('mp_building_limit "Teleporter Exit" 10000');
end
-----------------------
-- Dropping Cash -------
-----------------------
addhook("say","say_drop")
function say_drop(id,txt)
	if (txt=="!dropC") or (txt=="!dropc") then
		if (player(id,"money")>99) then
		parse("spawnitem 66 "..player(id,"tilex").." "..player(id,"tiley").."")
		parse("setmoney "..id.." "..player(id,"money")-100)
		end
	end
	if (txt=="!dropM") or (txt=="!dropm") then
		if (player(id,"money")>499) then
		parse("spawnitem 67 "..player(id,"tilex").." "..player(id,"tiley").."")
		parse("setmoney "..id.." "..player(id,"money")-500)
		end
	end
	if (txt=="!dropG") or (txt=="!dropg") then
		if (player(id,"money")>999) then
		parse("spawnitem 68 "..player(id,"tilex").." "..player(id,"tiley").."")
		parse("setmoney "..id.." "..player(id,"money")-1000)
		end
	end
end