Forum

> > CS2D > Scripts > More than one gun?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch More than one gun?

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt More than one gun?

OlaFPhp
User Off Offline

Zitieren
It started when i was playing a rp server.
then when step into two weapons(all are primary weapons) i picked them all.

can someone plz give me a code or script for that plz.

alt Re: More than one gun?

EngiN33R
Moderator Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function contains(table, element)
    for _, value in pairs(table) do
        if value == element then
            return true
        end
    end
    return false
end

addhook("walkover","moregun")
function moregun(id,iid,type)
	if not (contains(playerweapons(id),type)) then
		parse("equip "..id.." "..type)
		parse("setweapon "..id.." "..type)
		parse("removeitem "..iid)
		return 0
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht