OnPlayerDeath Bugged
#1

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

http://pawno.pastebin.com/m71fe50d0
Reply
#3

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

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

Can Any1 help?
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)