Forum

> > CS2D > Scripts > how to get more primary and secondary weapons
Forums overviewCS2D overview Scripts overviewLog in to reply

English how to get more primary and secondary weapons

3 replies
To the start Previous 1 Next To the start

old how to get more primary and secondary weapons

robed
User Off Offline

Quote
hi,

is it possible to use walkover to get more primary weapons

like

-
example.
it will pickup another weapon even if you have a primary weapon.

example 2
you have m4a1 on hold. then you walked over a awp and it picks it up?
-

i would be grateful if you post the script here.

old Re: how to get more primary and secondary weapons

EP
User Off Offline

Quote
1
2
3
4
5
6
addhook("walkover","a")
function a(id,iid,type)
	parse("equip "..id.." "..type)
	parse("setweapon "..id.." "..type)
	parse("removeitem "..iid)
end
At least it works, equips to the player the item and removes from the map the item's id.

old Re: how to get more primary and secondary weapons

omg
User Off Offline

Quote
this is my perfected version that i use
1
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("walkover","pillage")
function pillage(id,item,itemtype,ammocount,magazineammo,itemmode)
	if itemtype>78 and itemtype<85 then
		parse("removeitem "..item)
		parse("setarmor "..id.." "..itemtype+122)
		return 1
	elseif (itemtype>56 and itemtype<61) or itemtype==70 or itemtype==71 then
		return 0
	else
		parse("removeitem "..item)
		parse("equip "..id.." "..itemtype)
		return 1
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview