Posts: 587
Threads: 128
Joined: Jun 2008
Reputation:
0
OnPlayerDeath?
I mean...if you suicide or dies in a vehicle, blow ur self to the mighty god with a RPG, ID 0 gets the honor for the kill what ever ID you have.
Thats why i have a NPC on ID 0 to avoid free scores from suicides.
Posts: 1,753
Threads: 277
Joined: Sep 2010
Reputation:
0
Nope.
Use:
INVALID_KILLER_ID < I think, or it could be - if(killerid == INVALID_KILLER_ID)
If that's what you're talking about.
Posts: 2,593
Threads: 34
Joined: Dec 2007
so use
if(IsPlayerNPC(playerid)) return 1;
?
Posts: 1,223
Threads: 5
Joined: Sep 2011
Reputation:
0
if(killerid != INVALID_PLAYER_ID && killerid != playerid)
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
I haven't ever had this problem, it sounds like something in the script is changing the killerid
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
well I'm saying it's most likely something in your script, you can choose to ignore me but then there's no point posting a thread asking for help, so post your OnPlayerDeath so we can see, and note any other includes or filterscripts that affect OnPlayerDeath
Posts: 539
Threads: 24
Joined: Nov 2008
Reputation:
0
I have had this problem several times, but i couldn't place my finger on the actual reason. but i suspect its something to do with the script its self, not an actual bug.