Forum

> > CS2D > General > About the makect/maket command
Forums overviewCS2D overviewGeneral overviewLog in to reply

English About the makect/maket command

2 replies
To the start Previous 1 Next To the start

old About the makect/maket command

mozilla1
User Off Offline

Quote
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.

old Re: About the makect/maket command

sheeL
User Off Offline

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