How to skip the death animation?
#1

Hey community,

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


greets skyfreak
Reply
#2

I have the same question too
Hope someone will answer
Reply
#3

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

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..
Reply
#5

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

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 ?
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)