Players Number
#10

Quote:
Originally Posted by Odeath
Посмотреть сообщение
Don't use

it will not increment the player's score it will initialize the score and then set it to deathcount
for example if you killed 4 players and you had 5 score you score will be 4 not 9
Perhaps I'm not understanding his English, but I was under the impression that's what he said he wanted.

If it isn't, you can simply do:

Код:
SetPlayerScore (killerid, GetPlayerScore(killerid) + deathcount);
The code you provided only increases the score by one, it doesn't take into account the other players dead within the area, which if someone else were to kill, wouldn't be added onto the killer's score.

Again, I'm assuming that is what he wants, your interpretation may be correct.
Reply


Messages In This Thread
Players Number - by IceSKull - 08.04.2017, 11:35
Re: Players Number - by LEOTorres - 08.04.2017, 11:45
Re: Players Number - by Odeath - 08.04.2017, 11:52
Re: Players Number - by IceSKull - 08.04.2017, 11:54
Re: Players Number - by LEOTorres - 08.04.2017, 11:56
Re: Players Number - by IceSKull - 08.04.2017, 11:58
Re: Players Number - by LEOTorres - 08.04.2017, 12:03
Re: Players Number - by IceSKull - 08.04.2017, 12:05
Re: Players Number - by Odeath - 08.04.2017, 12:15
Re: Players Number - by LEOTorres - 08.04.2017, 12:30

Forum Jump:


Users browsing this thread: 1 Guest(s)