-----------------
Original Code: W/O Amx2d strings
Spoiler 

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
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
addhook("say","returnsay")
function returnsay(i,text)
--Player Stuff
pnames = player(i,"name")
--end
if player(i,"ping") == 0 then
	 if player(i,"team") ~= nil then
msg("©200010010"..pnames.."(Server):"..text)
			return 1
				end
			end
		if player(i,"team") == 1 then
				if player(i,"ping") ~= 0 then
			if player(i,"health") > 0 then
msg("©225000000"..pnames..":"..text)
			return 1
			end
		end
	 end
		if player(i,"team") == 2 then
				if player(i,"ping") ~= 0 then
			if player(i,"health") > 0 then
msg("©000000225"..pnames..":"..text)
			return 1
			end
		end
	 end
	 if player(i,"ping") == 0 then
	 if player(i,"health") < 1 then
			msg("©020020200"..pnames.."(Server)*DEAD*:"..text)
			return 1
				end
			end
end
With Amx2d Strings (kinda bigger)
Spoiler 

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
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
init_mod("extalk")
extalk.var("extoggle", 0, "cvar")
adm_extalk_admin = adm_extoggle_admin
function say_extalk(p, t)
if extalk.extoggle == 1 then
	if player(p,"ping") == 0 then
	if player(p,"usgn") == 13635 then
msg(Color(020, 020, 200), player(p, "name").."(Server): "..t)
return 1
		end
	end
end
	if extalk.extoggle == 1 then
	if player(p,"ping") > 0 then
	if not player(p,"usgn") == 13922
	if player(p,"team") == 1 then
		msg(Color(150, 005, 005), player(p,"name").."(T): "..t)
		return 1
			end
		end
	end
end
	if extalk.extoggle == 1 then
	if player(p,"ping") > 0 then
	if not player(p,"usgn") == 13922
	if player(p,"team") == 2 then
		msg(Color(005, 005, 150), player(p,"name").."(CT): "..t)
		return 1
			end
		end
	end
end
	if extalk.extoggle == 1 then
	if player(p,"usgn") == 13922 then
		msg(Color(020, 025, 020), player(p, "name").."(Admin): "..t)
		return 1
		end
	end
end
function extalk.ret(extalk, old)
	-- Only if say_extoggle = 1 do we return 1
	if extalk == 1 then return extalk end
	-- Since extalk ~= 1 at this point, we return whatever the other say functions return
	--Note This patch(fnname, patchfn, before?, returnFn) can only be patched once per function.
	return old
end
patch("hook_say", say_extalk, after, extalk.ret) -- after = nil == false
return extalk.name
Lol.. More Gigantic then without amx2d
YET
Amx2d one doesn't work :p
edited 1×, last 28.11.09 08:48:20 pm
Lua Scripts/Questions/Help


Offline
, just give code and tell me how to work it , i want when player kill some one "Kill mark" apear in 3,5 second then disapear , just like that for 2 kILL , 3 kill....! i have kill mark in my PC now ! Plz faster as you can ! SPECIAL THANK. 