24.02.2012, 00:16
OnPlayerDeath
{
Dead[playerid] = true;
}
OnPlayerSpawn
{
if(Dead[playerid] == true)
{
TogglePlayerSpectating(playerid, true);
//The rest of ur code with camera position and timer...
}
}
//Add TogglePlayerSpectating(playerid, false); into your death timer function.
{
Dead[playerid] = true;
}
OnPlayerSpawn
{
if(Dead[playerid] == true)
{
TogglePlayerSpectating(playerid, true);
//The rest of ur code with camera position and timer...
}
}
//Add TogglePlayerSpectating(playerid, false); into your death timer function.