SAMP Spawn where died?
#1

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

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

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;
}
Reply
#4

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

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)