14.06.2014, 10:00
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;
}