[DOUBT] Killerid (score)
#1

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

nobody can help me?
Reply
#3

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

[Doppeyy
Reply
#4

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

[Doppeyy
....
please help me
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)