PKing and Dieing

Alright, so right now, when you get pk’ed and die, you spawn back at the last level you came out of…

I need to know how to fix this so you respawn at your current location, mostly I need this for a PK arena, but regardless, its annoying as hell x-x.

setlevel2 pk-blah.nw,30,30;

[/FONT]

Don’t do that when someone is in need of assistance…

have some kind of system NPC that saves your x,y,level then just if (playerdies) setlevel2 etc…

[QUOTE=SeraphX;12501]

setlevel2 pk-blah.nw,30,30;

[/FONT]
[/QUOTE]

Then people can lame the respawn point :rolleyes:, this also has to work on a map.

[QUOTE=skoopa;12505]Then people can lame the respawn point :rolleyes:, this also has to work on a map.[/QUOTE]

Haha, so what you’re saying is that it’s harder to lame the center of the map at 30 30 than laming the exact spot where they died, provided you want them to respawn at their old position?

Anyway here’s the code that will actually work for you.

if (playerenters) {
  toweapons -nodiesys;
  timeout = 0.05;
}
if (timeout) {
  timeout = 0.05;
  if (this.ded == 1) {
    this.ded = 0;
    setlevel2 #s(this.olevel),this.ox,this.oy;
  }
  setstring this.olevel,#L;
  this.ox = playerx;
  this.oy = playery;
}
if (playerdies) {
  this.ded = 1;
}

[QUOTE=LittleRiggsey;12549]
Haha, so what you’re saying is that it’s harder to lame the center of the map at 30 30 than laming the exact spot where they died, provided you want them to respawn at their old position?

[/QUOTE]

This is in relation to a medium sized PK arena not a gmap, and thanks for the code:)