Forum

> > CS2D > Scripts > how to get more primary and secondary weapons
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch how to get more primary and secondary weapons

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt how to get more primary and secondary weapons

robed
User Off Offline

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

alt Re: how to get more primary and secondary weapons

EP
User Off Offline

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

alt Re: how to get more primary and secondary weapons

omg
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht