Forum

> > CS2D > Scripts > Script Terrorists Hidden
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Script Terrorists Hidden

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Script Terrorists Hidden

Rainoth
Moderator Off Offline

Zitieren
It is impossible to hide players.
There's semi-solutions though.

One would be to manipulate player armor, but I can see how it couldn't work with multiple players.

Another one would be to set tile image on terrorists. Since images can be player ID'd, you wouldn't get a problem but it still won't hide the player perfectly.

That's two solutions that don't work 100% but ye... they're there...

alt Re: Script Terrorists Hidden

GeoB99
Moderator Off Offline

Zitieren
As user Rainoth said, you cannot hide a specific player completely unless you're giving them the Stealth suit for example but that won't hide 100% but it does the job a bit.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function HideT(id)
	if player(id, "team") == 1 then
		return "84"
	end
end

Items = {79, 80, 81, 82, 83}

function walkover_(id, iid, type)
	if player(id, "team") == 1 then
		for _, i in pairs(Items) do
			if type == i then
				return 1
			end
		end
	end
end

addhook("spawn","HideT")
addhook("walkover","walkover_")
I've additionally added from 7 to 17 line an extra snippet of code to prevent Terrorists to pick up any armour on the ground, depending on the map, you can check Items ID reference in CS2D website.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht