05.09.2013, 00:50
Na maioria das vezes que logo no servidor inves de ir para o spawn sou hospitalizado:
Onplayerdeath:
Onplayerspawn:
Ajuda ae por favor
Onplayerdeath:
PHP код:
Morreu[playerid] = true;
PHP код:
if(Morreu[playerid] == true)
{
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);
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", 60000, 4);
return 1;
}