SA-MP Forums Archive
Is this ever gonna be fixed? - 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)
+--- Thread: Is this ever gonna be fixed? (/showthread.php?tid=311303)



Is this ever gonna be fixed? - cruising - 15.01.2012

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.


Re: Is this ever gonna be fixed? - iGetty - 15.01.2012

Nope.

Use:

INVALID_KILLER_ID < I think, or it could be - if(killerid == INVALID_KILLER_ID)

If that's what you're talking about.


Re: Is this ever gonna be fixed? - cruising - 15.01.2012

Quote:
Originally Posted by iGetty
Посмотреть сообщение
Nope.

Use:

INVALID_KILLER_ID < I think, or it could be - if(killerid == INVALID_KILLER_ID)

If that's what you're talking about.
I have tried that to and it doesn't change anything, for the moment my NPC has 253 in score from suicides.. XD


Re: Is this ever gonna be fixed? - Jefff - 16.01.2012

so use
if(IsPlayerNPC(playerid)) return 1;
?


Re: Is this ever gonna be fixed? - cruising - 16.01.2012

Quote:
Originally Posted by Jefff
Посмотреть сообщение
so use
if(IsPlayerNPC(playerid)) return 1;
?
Its not that, i use a NPC so no one can get ID 0 and get all the free kills


Re: Is this ever gonna be fixed? - [ABK]Antonio - 16.01.2012

if(killerid != INVALID_PLAYER_ID && killerid != playerid)


Re: Is this ever gonna be fixed? - cessil - 16.01.2012

I haven't ever had this problem, it sounds like something in the script is changing the killerid


Re: Is this ever gonna be fixed? - cruising - 16.01.2012

Quote:
Originally Posted by cessil
Посмотреть сообщение
I haven't ever had this problem, it sounds like something in the script is changing the killerid
It has been like that on all my servers, and i am on my 3rd now.


Re: Is this ever gonna be fixed? - cessil - 16.01.2012

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


Re: Is this ever gonna be fixed? - Shadow_ - 16.01.2012

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.