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
once = {}
started = 0
addhook('join','j')
function j(id)
if started==0 then
once[id]=0
else
once[id]=1
end
end
addhook('die','d')
function d(id)
started = 1
once[id]=1
if #player(0,"tableliving")==1 then
started=0
once[id]=0
end
end
addhook('spawn','s')
function s(id)
if once[id]==1 then
parse("kill "..id.."")
end
end
This is another 1 using lock spec! : 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
parse("mp_randomspawn 1") --random spawn [optional]
locked = 0
addhook("spawn","s")
function s(id) --this func is only needed if u turn on random spawn!
return "id of wpns u want (seperate with comma)"
end
addhook("startround_prespawn","sp")
function sp(mode)
locked = 0
for id=1, 32 do
if player(id,"exists") and player(id,"team")==0 then
parse("makect "..id)
end
end
end
addhook("kill","k")
function k(kil,vic,wpn)
parse("makespec "..vic)
locked = 1
end
addhook("ms100","ms")
function ms()
if #player(0,"tableliving")==1 and locked==1 then
for id=1,32 do
if player(id,"exists") and player(id,"health")>0 then
msg("©000255000"..player(id,"name").." won this match!@C")
parse("restart 3")
end
end
end
end
addhook("team","te")
function te(id,team)
if team~=0 and locked==1 then
msg2(id,"©255000000Wait till the round gets over!")
return 1
end
end