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
--Addhooks
addhook('say','adminCommands',-1)
addhook('sayteam','adminCommands',-1)
--End of Addhook.
--Admins
function Admins(id)
		if (player(id,"usgn")==116544) then
			return true
		end
	return false
end
--AdminsCommand
function adminCommands(id,words)
	if Admins(id) and words:sub(1,1) =='!' then
		local command = words:lower():sub(2,2)
		if words:sub(3,3) ~= ' ' and #words ~= 2 then return end
		if command =='e' then
			local dmg = tonumber(words:sub(4))
			if dmg then
				parse('explosion '..player(id,'x')..' '..player(id,'y')..' '..dmg..' '..dmg..' '..id)
				return 1
			end
			msg2(id,'Spawn explosion: "!e <dmg>"')
			return 1
		end
		end
	end
--End of AdminCommand