Forum

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

English Team message

3 replies
To the start Previous 1 Next To the start

old Team message

Suprise
BANNED Off Offline

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

old Re: Team message

aleksix
User Off Offline

Quote
A simple loop for 32 players, then teamcheck using player(id,"team"), then msg2

Not really hard. cs2d lua cmd player

old Re: Team message

Rainoth
Moderator Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview