Forum

> > CS2D > Scripts > Script Request
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Script Request

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Script Request

KagamineLen
User Off Offline

Zitieren
guys is there script that you can take a droped weapon so youll be having 2 weapons

like a rpg and i saw a droped laser so i go over it and got the laser now i have an rpg and a laser
1× editiert, zuletzt 16.03.13 17:11:33

alt Re: Script Request

EngiN33R
Moderator Off Offline

Zitieren
A very simple script, but it does what you want.
1
2
3
4
5
addhook("walkover","weapons")
function weapons(id,iid,type)
	parse("removeitem "..iid)
	parse("equip "..id.." "..type)
end

alt Re: Script Request

KagamineLen
User Off Offline

Zitieren
it makes error with defuse kits, flags and etc. also is there a check if the player already has that weapon?

alt Re: Script Request

omg
User Off Offline

Zitieren
this is what i have in my scripts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("walkover","pillage")
function pillage(id,item,itemtype)
	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
why would u check to see if the player already had the weapon? it just equips the new weapon over their old one

alt Re: Script Request

KagamineLen
User Off Offline

Zitieren
it adds their ammo, and i need the checking if player already has weapons imma gonna use that on ma scripts
1× editiert, zuletzt 19.03.13 15:54:34
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht