"bug" ao morrer
#10

Se nгo der certo use esse comando antes de mandar o player para o spawn.

PHP Code:
ClearAnimations(playerid); 
Tbm troque seu SetTimer para SetTimerEx.

PHP Code:
public OnPlayerDeath(playeridkilleridreason)
{
    
SendDeathMessage(killerid,playerid,reason);
    
SetTimerEx("MorreuSpawnou"2000false"i"playerid);
    return 
1;
}
public 
MorreuSpawnou(playerid)
{
    new 
Random random(sizeof(RandomSpawns));
    
ClearAnimations(playerid);
    
SetPlayerInterior(playerid10);
    
SetPlayerSkin(playerid230);
    
SetPlayerPos(playeridRandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    
SetPlayerFacingAngle(playeridRandomSpawns[Random][3]);
    return 
1;

Reply


Messages In This Thread
"bug" ao morrer - by txrrrr - 07.01.2019, 19:29
Re: "bug" ao morrer - by PedroH - 07.01.2019, 19:31
Re: "bug" ao morrer - by txrrrr - 07.01.2019, 19:38
Re: "bug" ao morrer - by PedroH - 07.01.2019, 19:40
Re: "bug" ao morrer - by txrrrr - 07.01.2019, 19:41
Re: "bug" ao morrer - by PedroH - 07.01.2019, 19:42
Re: "bug" ao morrer - by txrrrr - 07.01.2019, 19:47
Re: "bug" ao morrer - by PedroH - 07.01.2019, 19:55
Re: "bug" ao morrer - by txrrrr - 07.01.2019, 19:58
Re: "bug" ao morrer - by AutoMatic2 - 07.01.2019, 20:10
Re: "bug" ao morrer - by Bruno13 - 07.01.2019, 20:51
Re: "bug" ao morrer - by AutoMatic2 - 07.01.2019, 23:21
Re: "bug" ao morrer - by txrrrr - 07.01.2019, 23:23
Re: "bug" ao morrer - by AutoMatic2 - 08.01.2019, 00:30

Forum Jump:


Users browsing this thread: 1 Guest(s)