SA-MP Forums Archive
SAMP Spawn where died? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SAMP Spawn where died? (/showthread.php?tid=276005)



SAMP Spawn where died? - Shockey HD - 12.08.2011

Okay, So What i want is that when you die. You spawn in the same place. How do i do this?


Re: SAMP Spawn where died? - Kush - 12.08.2011

Grab the player's position, set their position upon death.


Re: SAMP Spawn where died? - Amel_PAtomAXx - 12.08.2011

pawn Код:
new Float:X,Float:Y,Float:Z;
public OnPlayerDeath(playerid , killerid , reason)
{
    GetPlayerPos(playerid,X,Y,Z);
    return 1;
}
public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid,X,Y,Z);
    return 1;
}



Re: SAMP Spawn where died? - Darnell - 12.08.2011

Why do you ask for a script ? Go to script request thread.


Re: SAMP Spawn where died? - Shockey HD - 12.08.2011

Quote:
Originally Posted by Darnell
Посмотреть сообщение
Why do you ask for a script ? Go to script request thread.
I did not ask for a script sir. I asked how i would do this. Read again Rick James.