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.
Forum
General
About the makect/maket command
About the makect/maket command
2 replies
1

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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
sheeL: Your player dies and he's instantly spawned. It's not possible to switch change player's team without his death.
1

Offline