SA-MP Forums Archive
How to skip the death animation? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to skip the death animation? (/showthread.php?tid=461390)



How to skip the death animation? - Skyfreak9 - 01.09.2013

Hey community,

i've a question.
how to skip the death animation, so i can spawn the player instant?


greets skyfreak


Re: How to skip the death animation? - gurmani11 - 06.10.2014

I have the same question too
Hope someone will answer


Re : How to skip the death animation? - DaTa[X] - 06.10.2014

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  SpawnPlayer(playerid);
  return 1;
}
not tested ! and i think it's not gonna work


Re: How to skip the death animation? - gurmani11 - 06.10.2014

it works but death info changes
for example
player A kills B with sawn off
then death message will show up like this
A >Sawnoff B
A >died (sign of skull)
i mean to say it spams two signs and death counts twice..


Re: How to skip the death animation? - Abagail - 06.10.2014

Do you have two OnPlayerDeath's being called? Try to debug it using the print/printf functions.


Re : Re: How to skip the death animation? - DaTa[X] - 06.10.2014

Quote:
Originally Posted by gurmani11
Посмотреть сообщение
it works but death info changes
for example
player A kills B with sawn off
then death message will show up like this
A >Sawnoff B
A >died (sign of skull)
i mean to say it spams two signs and death counts twice..
oh you mean OnPlayerDeath callback get called twice !!
try returning 0 maybe ?


Re: How to skip the death animation? - Ari - 07.10.2014

You might be calling
pawn Код:
SendDeathMessage(killerid, playerid, reason);
twice, show us your OnPlayerDeath callback