#1

Hello.
I cant get to work one thing. For each person i am getting $50,000 but i want to get 1 score per each person killed. i am using default gamemode LVDM by MoneyGrub
Reply
#2

Код:
//Under OnPlayerDeath
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);//Will give +1 score;


Reply
#3

Not works :0

There is my pwn

http://pastebin.com/FMsHh3zm
Reply
#4

Are you sure? Cause there is all fine and it must give you +1 score after you kill someone.
Reply
#5

Well i test it with my friend and not works. :/ Meyby cause of public MoneyGrubScoreUpdate ?
Reply
#6

lol, yea , it's because of that public. Just remove it and it should work without any problems.
Reply
#7

Well it works atm but it didnt shows the table who kills who ? how to fix it hmm

@
SendDeathMessage(killerid,playerid,reason);
??
Reply
#8

Yes, put this at the OnPlayerDeath
Reply
#9

Well the script works fine now thanks for help but now i need other

I have the Rank system v1 from here : http://forum.sa-mp.com/index.php?topic=147788.0"
But not works :/ Well it works like that :
When i get 6 kills my rank is not changing. It says on chat that my rank upgraded but the rank upgrade to my friend not to me and he had 0 kills :/ there is my pwn file with script :
http://pastebin.com/kf5c6rGz
Reply
#10

yea i know what's the problem there should be something like this on player death:
Код:
  {
    GetPlayerName(killerid, string, sizeof(string) );
    format(string, sizeof(string), "%s Is a baby killer!", string); //or something like that
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    pRank[playerid] = 1;
the problem is that it gives the Killed guy the rank, not the killer, due to the pRank[playerid] = 1; . Change 'playerid' with 'killerid'


there it should be fix but this rank script is not saving stats, you'll have to modify it...

NOTE: the script lines i gave differs from yours because this is some lines of my ranks script, which is a big moded vr of toniu's.

EDIT:
Don't Forget to replace the 'playerid' to all ranks u have on the script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)