SendDeathMessage problem
#2

Your code is checking if killerid and playerid are the same. Observe the death list below.



You can see that for the first case (suicide), there's no killer for playerid, not even playerid itself. For nonexistent killers, you need to check if killerid is equal to INVALID_PLAYER_ID.
Reply


Messages In This Thread
SendDeathMessage problem - by DarkLored - 24.03.2014, 02:42
Re: SendDeathMessage problem - by Corekt - 24.03.2014, 03:10
Re: SendDeathMessage problem - by DarkLored - 24.03.2014, 03:18
Re: SendDeathMessage problem - by Corekt - 24.03.2014, 03:29
Re: SendDeathMessage problem - by MP2 - 24.03.2014, 07:59
Re: SendDeathMessage problem - by Corekt - 24.03.2014, 17:34
Re: SendDeathMessage problem - by DarkLored - 24.03.2014, 19:54

Forum Jump:


Users browsing this thread: 1 Guest(s)