Forum

> > CS2D > Scripts > Who can create the script?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Who can create the script?

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Who can create the script?

_Lima_
User Off Offline

Zitieren
Who can create a script so that when the player writes Joke 1, Joke 2.. begins to sound only next to it? This scenario is very necessary, it will complement the Stalker server. If someone does this, I'll add his alias to the F1 description. pls

alt Re: Who can create the script?

DC
Admin On Online

Zitieren
If you're asking for a specific script please use the title to explain WHAT script you want. Otherwise we will have like 100000 equal thread titles here...

alt Re: Who can create the script?

Cure Pikachu
User Off Offline

Zitieren
Is it like that part in the sayfunctions sample where:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- Some parts are hidden to save space

if sample==nil then sample={} end
sample.sayfuncs={}

addhook("say","sample.sayfuncs.say")
function sample.sayfuncs.say(p,txt)
	-- Some code lies here
	
	-- SOUND: That's the way I like it
	if (txt=="the way") then parse("sv_sound \"fun/thats_the_way.wav\""); end

	-- SOUND: Okay let's go
	if (txt=="lets go") then parse("sv_sound \"hostage/hos2.wav\""); end

	-- SOUND: Buaraarahahrahrrrr harr!
	if (txt=="zombies!") then parse("sv_sound \"player/zm_spray.wav\""); end

	-- SOUND: Mystery
	if (txt=="mystery") then parse("sv_sound \"env/mystery.wav\""); end
	
end

alt Cure Pikachu

_Lima_
User Off Offline

Zitieren
It fits, but it triggers sound everywhere. And I need only next to the player that I wrote. Is it possible to do this?

alt Re: Who can create the script?

_Lima_
User Off Offline

Zitieren
I mean that the player is talking to the players nearby when he writes a Joke, and he can only hear 10 meters near him, which he said.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht