Posts: 1
Threads: 1
Joined: Feb 2011
Reputation:
0
Hey community,
i've a question.
how to skip the death animation, so i can spawn the player instant?
greets skyfreak
Posts: 355
Threads: 40
Joined: Dec 2012
Reputation:
0
I have the same question too
Hope someone will answer
Posts: 371
Threads: 8
Joined: Aug 2012
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SpawnPlayer(playerid);
return 1;
}
not tested ! and i think it's not gonna work
Posts: 355
Threads: 40
Joined: Dec 2012
Reputation:
0
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..
Posts: 3,133
Threads: 71
Joined: Dec 2013
Reputation:
0
Do you have two OnPlayerDeath's being called? Try to debug it using the print/printf functions.
Posts: 371
Threads: 8
Joined: Aug 2012
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 ?
Posts: 97
Threads: 3
Joined: Feb 2013
You might be calling
pawn Код:
SendDeathMessage(killerid, playerid, reason);
twice, show us your OnPlayerDeath callback