Forum

> > CS2D > General > About the makect/maket command
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch About the makect/maket command

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt About the makect/maket command

mozilla1
User Off Offline

Zitieren
It is possible to use makect/maket command without the player dying?

I mean, I really don't want the player dying, it means I don't want the solutions which involves making the player dying and then spawning again, or something like that.

alt Re: About the makect/maket command

sheeL
User Off Offline

Zitieren
Maybe impossible for me, but you can try it;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function switch_team(id)
	if player(id,"exists") then
		local myX = player(id,"x");
		local myY = player(id,"y");
		if player(id,"team") == 1 then
			parse("makect "..id);
		else
			parse("maket "..id);
		end
		parse("spawnplayer "..id.." "..myX.." "..myY);
		if tonumber(player(id,"deaths")==0) then	
			parse("setdeaths "..id.." 0");
		else
			parse("setdeaths "..id.." "..player(id,"deaths")-1);
		end
	end
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht