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
CS2D General About the makect/maket commandAbout the makect/maket command
2 Antworten 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
1