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
triggers = {
freeday = {'cell1', 'cell2', 'cell3',
'cell4', 'cell5', 'cell6',
'cell7', 'cell8', 'cell9',
'cell10', 'itemz', 'freeday',
'freedayz', 'freedaysecret',
'startsecret', 'thedelayz2', 'itemz2'},
warzone = {'warz', 'thedelayz', 'warzs', 'rain'}
}
addhook("startround", "roundstart")
function roundstart()
local const_rand = math.random(1,100)
parse("msg "..const_rand)
if const_rand > 90 then
for i=1,#(triggers.freeday) do
parse('trigger '..triggers.freeday[i])
end
elseif const_rand <= 8 then
for i=1,#(triggers.warzone) do
parse('trigger '..triggers.warzone[i])
end
for k,v in pairs (player(0,"tableliving")) do
if player(v,"team") == 1 then
parse("setpos "..v.." 5520 "..math.random(54,65)*32+16)
else
parse("setpos "..v.." 6384 "..math.random(54,65)*32+16)
end
end
end
end
--
-- Scan Script
--
scanners = {
{119,137,'hasWeapons','hasNoWeapons'},
{53,129,'hasWeapons1','hasNoWeapons1'},
}
addhook("movetile","movetile_hook")
function movetile_hook(id, x, y)
for _,i in pairs (scanners) do
if x == scanners[_][1] and y == scanners[_][2] then
if #playerweapons(id) > 1 then
parse("trigger "..scanners[_][3])
else
parse("trigger "..scanners[_][4])
end
end
end
end