Forum

> > CS2D > Scripts > Strip stealth suit
Forums overviewCS2D overview Scripts overviewLog in to reply

English Strip stealth suit

3 replies
To the start Previous 1 Next To the start

old Strip stealth suit

En-Kay
User Off Offline

Quote
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)!

old Re: Strip stealth suit

Yates
Reviewer Off Offline

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

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

old Lua

KimKat
GAME BANNED Off Offline

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