NaPorraDoEvento[playerid] = true;
Morreu[playerid] = true;
if(Morreu[playerid])
{
SetPlayerHealth(playerid, 5.0);
new randmaca = random(sizeof(MacaAposMorrer));
SetPlayerPos(playerid, MacaAposMorrer[randmaca][0], MacaAposMorrer[randmaca][1], MacaAposMorrer[randmaca][2]);
SetPlayerFacingAngle(playerid, MacaAposMorrer[randmaca][3]);
SetPlayerInterior(playerid, 1);
ClearChatbox(playerid, 10);
ClearAnimations(playerid);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
SetPlayerCameraPos(playerid, 1159.3287, -1314.6178, 9282.0693);
SetPlayerCameraLookAt(playerid, 1164.3419, -1305.1895, 9280.5693);
GameTextForPlayer(playerid, "~r~Voce sera recuperado em alguns segundos~n~Aguarde", 27000, 4);
return 1;
}
if(NaPorraDoEvento[playerid])
{
Morreu[playerid] = false;
SpawnPlayer(playerid);
}
ponha isso no comeзo da OnPlayerDeath
PHP код:
|
if(NaPorraDoEvento[playerid])
{
Morreu[playerid] = false;
SpawnPlayer(playerid);
}
else
{
Morreu[playerid] = true;
SpawnPlayer(playerid);
}
PHP код:
|