Death Problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Death Problem (
/showthread.php?tid=225167)
Death Problem -
grand.Theft.Otto - 13.02.2011
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
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
Re: Death Problem -
omer5198 - 13.02.2011
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;
}
Re: Death Problem -
SkizzoTrick - 13.02.2011
I understand
That is a Sa-mp bug
Re: Death Problem -
grand.Theft.Otto - 13.02.2011
Yes, Skizzo is right, I guess it can't be fixed then
Thanks anyway.