Can someone help me to make a simple script which does this:
If a player died, then he'll respawn at the same place where he died
Thanks.
addhook("die","p_die") function p_die(id) parse("spawnplayer "..id.." "..player(id,"x").." "..player(id,"y")) end
addhook("die","p_die") function p_die(id) parse("spawnplayer "..id.." "..player(id,"x").." "..player(id,"y")) end
addhook("die","playerdie") function playerdie(id,pl,w,x,y) 	timer(20,"parse","spawnplayer "..id.." "..x.." "..y) 	-- timerEx version 	-- timerEx(20,parse,1,"spawnplayer "..id.." "..x.." "..y) end