Forum

> > CS2D > Scripts > Removing ALL the items.
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Removing ALL the items.

25 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: Removing ALL the items.

Mora
User Off Offline

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

alt Re: Removing ALL the items.

Talented Doge
User Off Offline

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

alt Re: Removing ALL the items.

Mora
User Off Offline

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

alt Re: Removing ALL the items.

Mora
User Off Offline

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

alt Re: Removing ALL the items.

Yates
Reviewer Off Offline

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

alt Re: Removing ALL the items.

Mora
User Off Offline

Zitieren
But what problems i will get if players wont have items?
impossible to strip, but possible to do it with another way.(intopic "more")
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht