Death Problem
#1

Well the problem is this...

Say there were 2 players on my server, me and another player. I shoot at him with a sawn off, he loses HP perfectly, but say he jumped off a mountain before I shot and killed him with my sawns and he dies. My death messages would show:

pawn Код:
Player2 (1) Died. Killed By: grandTheftOtto (0)  -  Sawnoff Shotgun

and the death list would show:

pawn Код:
grandTheftOtto <Sawnoff> Player2

But the problem is, I DIDN'T KILL HIM lol, he jumped off the mountain and it would return the killers name and reason for why he died, instead it should get the very last reason of death or damage which in this case should be
pawn Код:
%s (1) Died. (Splat)
because he jumped off a mountain, not me killing him.

This also happens with every other death like explosions or getting run over by a train, etc... (gets the last killer who damaged the player then shows the wrong messages)

Sorry if this was long but I hope you understand and can help me
Reply
#2

i didnt understood what you want to do... do you want it to say who killed the guy and with what? if so:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
    return 1;
}
Reply
#3

I understand
That is a Sa-mp bug
Reply
#4

Yes, Skizzo is right, I guess it can't be fixed then Thanks anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)