Forum

> > CS2D > Scripts > Zombie plague extra item
Forums overviewCS2D overview Scripts overviewLog in to reply

English Zombie plague extra item

2 replies
To the start Previous 1 Next To the start

old Zombie plague extra item

z0w13
User Off Offline

Quote
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

old Re: Zombie plague extra item

jerezinho
User Off Offline

Quote
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>")
edited 4×, last 19.03.18 09:03:47 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview