SA-MP Forums Archive
[DOUBT] Killerid (score) - 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: [DOUBT] Killerid (score) (/showthread.php?tid=116366)



[DOUBT] Killerid (score) - Nyafe - 28.12.2009

Hello !!

I have a doubt on the 'killerid'. 'OnPlayerDeath'

When a player killing another, I want he wins score, but do not want to be always the same score he wins ... for example:
now kills one and wins (+1 score), then kill another and wins (score +3) .. "vary the score for each murder"


Sorry For My Bad English, I'm Portuguese !!!



Re: [DOUBT] Killerid (score) - Nyafe - 28.12.2009

nobody can help me?


Re: [DOUBT] Killerid (score) - Doppeyy - 28.12.2009

Quote:
Originally Posted by Nyafe
nobody can heal me?
You mean help you ?

[Doppeyy


Re: [DOUBT] Killerid (score) - Nyafe - 28.12.2009

Quote:
Originally Posted by [๔เгty๔ยtςђ
๔๏קקєyy ]
Quote:
Originally Posted by Nyafe
nobody can heal me?
You mean help you ?

[Doppeyy
....
please help me


Re: [DOUBT] Killerid (score) - TheChaoz - 28.12.2009

i don't know very much about pawno, but maybie you can try this:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   new CurrentScore;
   CurrentScore = GetPlayerScore(killerid);
   SetPlayerScore(killerid, GetPlayerScore(killerid)+CurrentScore);

   return 1;
}
i hope it helps u