How to teleport a player in his death position?
#4

Here you go.
pawn Код:
new FloatX[MAX_PLAYERS];
new FloatY[MAX_PLAYERS];
new FloatZ[MAX_PLAYERS];
OnPlayerDeath
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    FloatX[playerid] = x;
    FloatY[playerid] = y;
    FloatZ[playerid] = z;
    return 1;
}
OnPlayerSpawn
{
    SetPlayerPos(playerid, FloatX[playerid], FloatY[playerid], FloatZ[playerid]);
    FloatX[playerid]=0.0; FloatY[playerid]=0.0; FloatZ[playerid]=0.0;
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)