Forum

> > CS2D > Scripts > Strip stealth suit
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Strip stealth suit

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Strip stealth suit

En-Kay
User Off Offline

Zitieren
Ok so I made a script which gives you stealth suit for 20 seconds and after 20 seconds it sould be removed but I get this error:

1
ERROR: strip - cannot strip 84 - Stealth Suit (no inventory item)!

alt Re: Strip stealth suit

Yates
Reviewer Off Offline

Zitieren
Replace strip with:
1
parse("setarmor "..id.." 0")

Armour & stuff like bombs cannot be stripped from the player. It could cause bugs otherwise.

alt Lua

KimKat
GAME BANNED Off Offline

Zitieren
1
addhook("spawn","onspawn");function onspawn(p) spawn_opt();return "x,84" end;function stripper(p) parse("strip "..p)end;function spawn_opt() timer(5000,"stripper",p)end
This will make players spawn with a Stealth Suit and knife (melee) and strip player after five seconds has passed in theory. Haven't tested the code but I'm pretty sure it'll work.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht