07.01.2019, 20:10
Se nгo der certo use esse comando antes de mandar o player para o spawn.
Tbm troque seu SetTimer para SetTimerEx.
PHP Code:
ClearAnimations(playerid);
PHP Code:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
SetTimerEx("MorreuSpawnou", 2000, false, "i", playerid);
return 1;
}
public MorreuSpawnou(playerid)
{
new Random = random(sizeof(RandomSpawns));
ClearAnimations(playerid);
SetPlayerInterior(playerid, 10);
SetPlayerSkin(playerid, 230);
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
return 1;
}