08.09.2012, 03:41
OK, how do i make when player died, then spawn in the same last death place?
new Float:deathx[MAX_PLAYERS], Float:deathy[MAX_PLAYERS], Float:deathz[MAX_PLAYERS];
new died[MAX_PLAYERS];
OnPlayerDeath(playerid)
{
GetPlayerPos(playerid, deathx[playerid], deathy[playerid], deathz[playerid]);
died[playerid] = 1;
}
OnPlayerSpawn(playerid);
{
if(died[playerid] == 1)
{
SetPlayerPos(playerid, deathx[playerid], deathy[playerid], deathz[playerid]);
}
}