English Say Team

7 replies
Goto Page
To the start Previous 1 Next To the start
01.06.19 09:17:32 am
Up
NeptooN
User
Offline Off
Guys please help me with script
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
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.
01.06.19 08:23:57 pm
Up
AtomKuh
User
Offline Off
Code:
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)
03.06.19 11:30:59 am
Up
NeptooN
User
Offline Off
@user AtomKuh: Not work!

Works but after a time
03.06.19 12:41:10 pm
Up
Gaios
Security Supporter
Offline Off
@user NeptooN: What?
03.06.19 01:51:04 pm
Up
phalenkO
User
Offline Off
@user NeptooN:
Code:
1
addhook("sayteam","atomsays")
03.06.19 02:46:57 pm
Up
NeptooN
User
Offline Off
@user phalenkO: ?
03.06.19 03:39:51 pm
Up
phalenkO
User
Offline Off
@user NeptooN: You take this:)
Code:
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?
03.06.19 04:31:34 pm
Up
NeptooN
User
Offline Off
@user AtomKuh: @user phalenkO: I found a break in my script myself, but thank you
To the start Previous 1 Next To the start