[Ajuda] OnPlayerDeath
#1

Nгo sei se й um bug ou se do meu jogo, mais й quando o player morre queimado parado de vez ele cair no chгo e morrer ele fica um bom tempo de pй ate o GM reconhecer que o player foi morto.
Se tiver como me ajudem ai.


Reply
#2

Nгo й bug nenhum, isso acontece em todos os servers ...
Й mesmo do GTA ...
Reply
#3

Quote:
Originally Posted by SirRafa
Посмотреть сообщение
Nгo й bug nenhum, isso acontece em todos os servers ...
Й mesmo do GTA ...
Acho que nгo porque jб fiz isso em todos os outros servers que estгo nos favoritos do meu samp nunca deu esse tipo de bug. Isso sу acontece no meu sever
Reply
#4

Penso que й mesmo do GTA, isso tambйm me acontecia em alguns servidores, sу que аs vezes demora mais ou menos tempo a morrer ... Talvez seja do Lag, nгo sei ... Mas acho que nгo й nenhum bug que se resolva '-'
Reply
#5

isso acontece com molotov eu acho o geito e tirar ele.
Reply
#6

Posta o cуdigo da callback OnPlayerDeath.

Acredito que tenha algo relacionado a funзгo ClearAnimation ou ApplyAnimation.
Reply
#7

Quote:
Originally Posted by Schocc
Посмотреть сообщение
Posta o cуdigo da callback OnPlayerDeath.

Acredito que tenha algo relacionado a funзгo ClearAnimation ou ApplyAnimation.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    #if defined LoopsUser//--------Anim Loops-----------------------------------
    if(gPlayerUsingLoopingAnim[playerid])
    {
        gPlayerUsingLoopingAnim[playerid] = 0;
        SendClientMessage(playerid, Azul, "Para sair do anime tecle 'Espaзo'.");
    }
    #endif
//------------------------------------------------------------------------------
    SendDeathMessage(killerid,playerid,reason);
    GameTextForPlayer(playerid,"~r~Se fodeu...", 2500, 5);
    SeMorreu[playerid] = true;

    if(GetClosestHospital(playerid) == 0)
    {
        SetSpawnInfo(playerid,1, DOF2::GetInt(PegarConta(playerid), "Skin"),-2651.6501, 634.4510, 14.4531, 180.0000, 0, 0, 0, 0, 0, 0);
    }
    else if(GetClosestHospital(playerid) == 1)
    {
        SetSpawnInfo(playerid,1, DOF2::GetInt(PegarConta(playerid), "Skin"),1173.5842,-1324.5615,15.1953,278.4624,0,0,0,0,0,0);
    }
    else if(GetClosestHospital(playerid) == 2)
    {
        SetSpawnInfo(playerid,1, DOF2::GetInt(PegarConta(playerid), "Skin"),2031.9415,-1404.3578,17.2614,165.8180,0,0,0,0,0,0);
    }
    else if(GetClosestHospital(playerid) == 3)
    {
        SetSpawnInfo(playerid,1, DOF2::GetInt(PegarConta(playerid), "Skin"),1582.5615,1768.7921,10.8203,93.7454,0,0,0,0,0,0);
    }
    return 1;
}
Esse e o cуdigo
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=164325
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)