Forum

> > Trash > I need some Halp!
ForenübersichtTrash-ÜbersichtEinloggen, um zu antworten

Englisch I need some Halp!

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben I need some Halp!

Vegetarian
User Off Offline

Zitieren
Hey guys, and thanks for reading this.

Recently I have started learning Lua, I have learn the basics and have started applying them into CS2D. I have started making a Deathrun map, where I realised a problem.

I'm not sure how to make a script which allows all players to spawn without a pistol (knife only), and help would be much appreciated.

Thanks.

- Vegetarian.

Admin/Mod Kommentar

read the guidelines when posting. "I need some Halp!" is a bad title.

alt Re: I need some Halp!

KimKat
GAME BANNED Off Offline

Zitieren
Another approach is...
1
2
3
4
5
6
7
8
addhook("spawn","onspawn")
function onspawn(id,wpn)
	wpn = 2 -- Strip specific weapon
	if player(id,"exists") then
		parse("strip "..id.." "..wpn)
		-- STRIP ALL; parse("strip "..id)
	end
end
But both DannyDeth's and EngiN33R's solution seems pretty good.

alt Re: I need some Halp!

EngiN33R
Moderator Off Offline

Zitieren
Why need complicated strips on spawn if
DC in info.txt hat geschrieben
spawn(id)                              on spawn
-id: player id
>return:     "" - (nothing) spawn with regular items
          "x" - spawn with melee weapon only
          "typeid,typeid,..." - spawn with these items + melee

DC in info.txt hat geschrieben
"x" - spawn with melee weapon only

alt Quick.

cloudboys
User Off Offline

Zitieren
Quick question I can just put this anywhere in the map and there will be no weapons? (And I have been wanting this answer all my life but thanks.)
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenTrash-ÜbersichtForenübersicht