SA-MP Forums Archive
OnPlayerDeath Bugged - 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: OnPlayerDeath Bugged (/showthread.php?tid=123155)



OnPlayerDeath Bugged - PotH3Ad - 24.01.2010

Alright, when someone die's or someone kills another player, if they were in the DM Match, it's supposed to send a message and the player that died will no longer be in the DM. I have tried alot of stuff but I can't figure out how to fix the bug :/. Help would be appreciated.

Here is my OnPlayerDeath: http://pawno.pastebin.com/m29188668


Re: OnPlayerDeath Bugged - pen_theGun - 24.01.2010

http://pawno.pastebin.com/m71fe50d0


Re: OnPlayerDeath Bugged - Whitetiger - 24.01.2010

Quote:
Originally Posted by pen_†ĥęGun
Works perfect, except when there is 2 players left in the match, if one kills the other, it doesn't display "PLAYER killed PLAYER in Survival of the Fittest", it just skips that.


Re: OnPlayerDeath Bugged - PotH3Ad - 25.01.2010

Quote:
Originally Posted by [___
Whitetiger ]
Quote:
Originally Posted by pen_†ĥęGun
Works perfect, except when there is 2 players left in the match, if one kills the other, it doesn't display "PLAYER killed PLAYER in Survival of the Fittest", it just skips that.
Can't figure out this bug either


Re: OnPlayerDeath Bugged - tommykills1 - 25.01.2010

Can Any1 help?


Re: OnPlayerDeath Bugged - pen_theGun - 25.01.2010

Quote:
Originally Posted by [___
Whitetiger ]
....when there is 2 players left in the match, if one kills the other, it doesn't display "PLAYER killed PLAYER in Survival of the Fittest", it just skips that.
Checked code twice and it looks fine to me.
Are you sure, that these both players are in Death-Match? InDM[..] == 1 and Joined[...]==1


Re: OnPlayerDeath Bugged - PotH3Ad - 26.01.2010

Quote:
Originally Posted by pen_†ĥęGun
Checked code twice and it looks fine to me.
Are you sure, that these both players are in Death-Match? InDM[..] == 1 and Joined[...]==1
Hmm I think I found the bug, if the player started the DM match with "/sotf start", I never added InDM[playerid] = 1; for the player that started it, I only added InDM[playerid] = 1; if the player did "/sotf join" .

Thanks for the help dude.