English Team message

3 replies
Goto Page
To the start Previous 1 Next To the start
27.12.13 11:30:11 am
Up
Suprise
BANNED
Offline Off
Hey, is it possible to show a custom message with msg2 only to your teammates
something like this:

CT says !vest
The "Ballistic vest deployed" message shows up for CTs only.
Same goes for Terrors.
27.12.13 11:37:09 am
Up
aleksix
User
Offline Off
A simple loop for 32 players, then teamcheck using player(id,"team"), then msg2

Not really hard. cs2d lua cmd player
27.12.13 01:14:18 pm
Up
Rainoth
Moderator
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
addhook("say","heislazy")
function heislazy(id,t)
     if t == "!vest" then
          for p=1,32 do
               if player(id,"team")==player(p,"team") then
                    msg2(p,"Ballistic vest deployed")
               end
          end
     end
end
27.12.13 01:38:13 pm
Up
Suprise
BANNED
Offline Off
fuck you @user Rainoth, @user aleksix:
edited 1×, last 04.01.14 11:10:02 pm
To the start Previous 1 Next To the start