Say Team
7 replies



01.06.19 09:17:32 am
Guys please help me with script
In than problem?
Script is work! But sometimes writes a programmed text and "return 1" not help.
In than problem?
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
addhook("say","sayTeam")
function sayTeam(id,txt)
if player(id,"team") == 2 then
if player(id,"health") > 0 then
msg("©202225255"..player(id,"name").."©000000255 [CT]©144238144[LIVING]:©202225255"..txt)
elseif player(id,"health") == 0 then
msg("©202225255"..player(id,"name").."©000000255 [CT]©255106106[DEAD]:©202225255"..txt)
end
end
if player(id,"team") == 1 then
if player(id,"health") > 0 then
msg("©202225255"..player(id,"name").."©255000000 [T]©144238144[LIVING]:©202225255"..txt)
elseif player(id,"health") == 0 then
msg("©202225255"..player(id,"name").."©255000000 [T]©255106106[DEAD]:©202225255"..txt)
end
end
if player(id,"team") == 0 then
msg("©202225255"..player(id,"name").."©255255255 [S]©255106106[DEAD]:©202225255"..txt)
end
return 1
end
function sayTeam(id,txt)
if player(id,"team") == 2 then
if player(id,"health") > 0 then
msg("©202225255"..player(id,"name").."©000000255 [CT]©144238144[LIVING]:©202225255"..txt)
elseif player(id,"health") == 0 then
msg("©202225255"..player(id,"name").."©000000255 [CT]©255106106[DEAD]:©202225255"..txt)
end
end
if player(id,"team") == 1 then
if player(id,"health") > 0 then
msg("©202225255"..player(id,"name").."©255000000 [T]©144238144[LIVING]:©202225255"..txt)
elseif player(id,"health") == 0 then
msg("©202225255"..player(id,"name").."©255000000 [T]©255106106[DEAD]:©202225255"..txt)
end
end
if player(id,"team") == 0 then
msg("©202225255"..player(id,"name").."©255255255 [S]©255106106[DEAD]:©202225255"..txt)
end
return 1
end
Script is work! But sometimes writes a programmed text and "return 1" not help.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
addhook("say","sayTeam")
function sayTeam(id,txt)
if player(id,"team") == 2 then
if player(id,"health") > 0 then
msg("\169202225255"..player(id,"name").."\169000000255 [CT]\169144238144[LIVING]:\169202225255"..txt)
elseif player(id,"health") == 0 then
msg("\169202225255"..player(id,"name").."\169000000255 [CT]\169255106106[DEAD]:\169202225255"..txt)
end
end
if player(id,"team") == 1 then
if player(id,"health") > 0 then
msg("\169202225255"..player(id,"name").."\169255000000 [T]\169144238144[LIVING]:\169202225255"..txt)
elseif player(id,"health") == 0 then
msg("\169202225255"..player(id,"name").."\169255000000 [T]\169255106106[DEAD]:\169202225255"..txt)
end
end
if player(id,"team") == 0 then
msg("\169202225255"..player(id,"name").."\169255255255 [S]\169255106106[DEAD]:\169202225255"..txt)
end
return 1
end
function sayTeam(id,txt)
if player(id,"team") == 2 then
if player(id,"health") > 0 then
msg("\169202225255"..player(id,"name").."\169000000255 [CT]\169144238144[LIVING]:\169202225255"..txt)
elseif player(id,"health") == 0 then
msg("\169202225255"..player(id,"name").."\169000000255 [CT]\169255106106[DEAD]:\169202225255"..txt)
end
end
if player(id,"team") == 1 then
if player(id,"health") > 0 then
msg("\169202225255"..player(id,"name").."\169255000000 [T]\169144238144[LIVING]:\169202225255"..txt)
elseif player(id,"health") == 0 then
msg("\169202225255"..player(id,"name").."\169255000000 [T]\169255106106[DEAD]:\169202225255"..txt)
end
end
if player(id,"team") == 0 then
msg("\169202225255"..player(id,"name").."\169255255255 [S]\169255106106[DEAD]:\169202225255"..txt)
end
return 1
end
use this script (© was replaced with \169)
@
NeptooN: You take this:)
Oww, I forget put the sayteam but I can put the sayteam If u want. What u say?

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
addhook("say","newfunc")
function newfunc(id,txt)
if player(id,"team") == 2 and player(id,"health") > 0 then
msg("\169202225255"..player(id,"name").."\169000000255 [CT]\169144238144[LIVING]:\169202225255"..txt)
return 1
end
if player(id,"team") == 1 and player(id,"health") > 0 then
msg("\169202225255"..player(id,"name").."\169255000000 [T]\169144238144[LIVING]:\169202225255"..txt)
return 1
end
if player(id,"team") == 2 and player(id,"health") == 0 then
msg("\169202225255"..player(id,"name").."\169000000255 [CT]\169255106106[DEAD]:\169202225255"..txt)
return 1
end
if player(id,"team") == 1 and player(id,"health") == 0 then
msg("\169202225255"..player(id,"name").."\169255000000 [T]\169255106106[DEAD]:\169202225255"..txt)
return 1
end
if player(id,"team") == 0 then
msg("\169202225255"..player(id,"name").."\169255255255 [S]\169255106106[DEAD]:\169202225255"..txt)
return 1
end
end
function newfunc(id,txt)
if player(id,"team") == 2 and player(id,"health") > 0 then
msg("\169202225255"..player(id,"name").."\169000000255 [CT]\169144238144[LIVING]:\169202225255"..txt)
return 1
end
if player(id,"team") == 1 and player(id,"health") > 0 then
msg("\169202225255"..player(id,"name").."\169255000000 [T]\169144238144[LIVING]:\169202225255"..txt)
return 1
end
if player(id,"team") == 2 and player(id,"health") == 0 then
msg("\169202225255"..player(id,"name").."\169000000255 [CT]\169255106106[DEAD]:\169202225255"..txt)
return 1
end
if player(id,"team") == 1 and player(id,"health") == 0 then
msg("\169202225255"..player(id,"name").."\169255000000 [T]\169255106106[DEAD]:\169202225255"..txt)
return 1
end
if player(id,"team") == 0 then
msg("\169202225255"..player(id,"name").."\169255255255 [S]\169255106106[DEAD]:\169202225255"..txt)
return 1
end
end
Oww, I forget put the sayteam but I can put the sayteam If u want. What u say?



