Forum

> > CS2D > Scripts > Removing ALL the items.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Removing ALL the items.

25 replies
Page
To the start Previous 1 2 Next To the start

old Re: Removing ALL the items.

Mora
User Off Offline

Quote
it;s still
1
LUA ERROR: sys/lua/try.lua:3: bad argument #1 to 'playerweapons' (number expected, got nil)

old Re: Removing ALL the items.

Talented Doge
User Off Offline

Quote
1
for _, g in pairs(playerweapons(id)) do if g ~= 50 and g ~= 55 then parse ("strip "..p.." "..g) end

Uh, strip 0 seems to work fine.

old Re: Removing ALL the items.

Mora
User Off Offline

Quote
Maybe i've do something wrong?
1
2
3
4
5
6
7
8
addhook("spawn","dd")
function dd(p)
for _, g in pairs(playerweapons(id)) do
 if g ~= 50 and g ~= 55 then
 parse ("strip "..p.." "..g)
 end
end
end
@user Ridho: don't even need to launch it, i know it's wont work.

old Re: Removing ALL the items.

Mora
User Off Offline

Quote
O fuck, my english is terrible, i still don't understand you.
I have no using anything, there is no code.

old Re: Removing ALL the items.

Yates
Reviewer Off Offline

Quote
@user ohaz: It's not quite impossible (unless DC fixed it), but leads to a shitload of problems so it is recommended the player always have at least one item.

old Re: Removing ALL the items.

Mora
User Off Offline

Quote
But what problems i will get if players wont have items?
impossible to strip, but possible to do it with another way.(intopic "more")
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview