Forum

> > CS2D > Scripts > Say Team
Forums overviewCS2D overview Scripts overviewLog in to reply

English Say Team

7 replies
To the start Previous 1 Next To the start

old Say Team

NeptooN
User Off Offline

Quote
Guys please help me with script
In than problem?

1
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
Script is work! But sometimes writes a programmed text and "return 1" not help.

old Re: Say Team

AtomKuh
User Off Offline

Quote
1
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

use this script (© was replaced with \169)

old Re: Say Team

phalenkO
User Off Offline

Quote
@user NeptooN: You take this:)
1
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

Oww, I forget put the sayteam but I can put the sayteam If u want. What u say?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview