Forum

> > CS2D > Scripts > Who can create the script?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Who can create the script?

7 replies
To the start Previous 1 Next To the start

old Who can create the script?

_Lima_
User Off Offline

Quote
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

old Re: Who can create the script?

DC
Admin Off Offline

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

old Re: Who can create the script?

Cure Pikachu
User Off Offline

Quote
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

old Cure Pikachu

_Lima_
User Off Offline

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

old Re: Who can create the script?

_Lima_
User Off Offline

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