Respawn
#1

Hello Again, I was wondering if anyone knows how to make it so when the player dies they spawn exactly back were they died. I'm guessing this is quiet simple but it would be awsome if i had a little help. Thanks again Guys!
Reply
#2

Try this out.

pawn Код:
new
    Float:X[MAX_PLAYERS],
    Float:Y[MAX_PLAYERS],
    Float:Z[MAX_PLAYERS];

public OnPlayerDeath(playerid)
{
    GetPlayerPos(playerid,X[playerid],Y[playerid],Z[playerid]);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid,X[playerid],Y[playerid],Z[playerid]);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)