Forum

> > CS2D > Scripts > Zombie plague extra item
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Zombie plague extra item

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Zombie plague extra item

z0w13
User Off Offline

Zitieren
Hello, I would like to know how I could do so that when I buy an item when I shoot, a sound is made.

Script: http://unrealsoftware.de/files_show.php?file=10277


1
2
3
4
5
6
7
8
9
10
11
12
extra_awp_id = ZP.CreateExtraItem("human")
extra_awp = ZP.CFG.EXTRAHUMAN[extra_awp_id]
extra_awp.Cost = 8
extra_awp.Name = ItemName(35)

function extra_awp.Equipable(id)
	return not table.find(playerweapons(id),35)
end

function extra_awp.Equip(id)
	parse("equip "..id.." 35")
end

alt Re: Zombie plague extra item

jerezinho
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
extra_awp_id = ZP.CreateExtraItem("human")
extra_awp = ZP.CFG.EXTRAHUMAN[extra_awp_id]
extra_awp.Cost = 8
extra_awp.Name = ItemName(35)

function extra_awp.Equipable(id)
	return not table.find(playerweapons(id),35)
end

function extra_awp.Equip(id)
        parse("sv_sound2 "..id.." <sound here>")
	parse("equip "..id.." 35")
end

before
1
parse("equip "..id.." 35")
add this
1
parse("sv_sound2 "..id.." <sound here>")
4× editiert, zuletzt 19.03.18 21:03:47
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht