Forum

> > CS2D > Scripts > More than one gun?
Forums overviewCS2D overview Scripts overviewLog in to reply

English More than one gun?

1 reply
To the start Previous 1 Next To the start

old More than one gun?

OlaFPhp
User Off Offline

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

old Re: More than one gun?

EngiN33R
Moderator Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview