edited 1×, last 07.04.15 06:06:37 pm
Forum
Trash -Del--Del-
3 replies 1
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
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
if lua==nil then lua={} end lua.ghost = {} -- Fixed --------------------- ----Spawn Script---- --------------------- addhook("spawn","lua.ghost.spawn") function lua.ghost.spawn(id) 	if player(id,"team")==1 then 		-- Ghost Health (200) 		parse ("setmaxhealth "..id.." 200") 		-- Invisiblity 		parse("setarmor "..id.." 206") 	elseif player(id,"team")==2 then 		-- Humans Health (100) 		parse ("setmaxhealth "..id.." 100") 	end end ------------------------ ----Countdown Script---- ------------------------ rtcdown=0 function lua.ghost.randplayer() 	local rndpl=player(0,"team2")[math.random(1,#player(0,"team2"))] 	parse("maket "..rndpl) 	return rndpl end function lua.ghost.countdown() 	rtcdown=10 	msg(rtcdown) 	timer(1000,"parse","lua rtcdown=rtcdown-1; lua msg(rtcdown)",10) 	timer(10000,"parse","lua \"msg(player(randplayer(),'name')..' is the ghost!')\"") end addhook("startround","lua.ghost.checkfort") function lua.ghost.checkfort() 	if #player(0,"team1")==0 then 		countdown() 	end end addhook("endround","lua.ghost.makeallct") function lua.ghost.makeallct() 	for _, i in pairs(player(0,"team1")) do 		parse("makect "..i) 	end end ------------------ ----Server Hud---- ------------------ addhook("join","lua.ghost.join") function lua.ghost.join() -- Fixed 	parse('hudtxt 1 "...CSO Ghost Mode Server" 320 260 1') end ------------------- ----Ghost.Sound---- ------------------- addhook("kill","lua.ghost.kills") function lua.ghost.kills(killer,victim,weapon) 	if player(killer,"team")==1 then 		-- Sound File (zm_spray) 		parse("sv_sound \"player/zm_spray.wav\"") 	end end
1