Forum

> > CS2D > Scripts > Strip Usp/Glock at start
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Strip Usp/Glock at start

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Strip Usp/Glock at start

alex72super
User Off Offline

Zitieren
hello i tried to make a script that removed the usp/glock
when the player started

1
2
3
4
5
6
addhook("spawn","_spawn")
function _spawn(id,type)
 if ("type<=51 and type>=49") then
 return x
	end
end

can you help me fix it?

alt Re: Strip Usp/Glock at start

Rainoth
Moderator Off Offline

Zitieren
1
2
3
4
addhook("spawn","_spawn")
function _spawn(id)
	return "x" -- or parse("strip "..id) will do the same thing either way.
end

alt Re: Strip Usp/Glock at start

Rainoth
Moderator Off Offline

Zitieren
Zitat
why not just put noweapons entity in map


Because it's easier to write 4 lines than put an entity for every map you're playing

alt Strip

IRAN TOWN
User Off Offline

Zitieren
user alex72super hat geschrieben
hello i tried to make a script that removed the usp/glock

You can use this lua script.

1
2
3
4
5
6
7
8
addhook('spawn','spawn_hook')
function spawn_hook(id)
if player(id,'team')==1 then
parse('strip '..id..' 2')
else
parse('strip '..id..' 1')
end
end

alt Re: Strip Usp/Glock at start

alex72super
User Off Offline

Zitieren
user IRAN TOWN hat geschrieben
user alex72super hat geschrieben
hello i tried to make a script that removed the usp/glock

You can use this lua script.

1
2
3
4
5
6
7
8
addhook('spawn','spawn_hook')
function spawn_hook(id)
if player(id,'team')==1 then
parse('strip '..id..' 2')
else
parse('strip '..id..' 1')
end
end


Thank you iran but user Rainoth already gave me a code and its more simpler i guess thanks anyway.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht