SA-MP Forums Archive
LVDM - 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: LVDM (/showthread.php?tid=138711)



LVDM - XxerykxX - 02.04.2010

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


Re: LVDM - Norck - 02.04.2010

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





Re: LVDM - XxerykxX - 02.04.2010

Not works :0

There is my pwn

http://pastebin.com/FMsHh3zm


Re: LVDM - Norck - 02.04.2010

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



Re: LVDM - XxerykxX - 02.04.2010

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



Re: LVDM - Norck - 02.04.2010

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


Re: LVDM - XxerykxX - 02.04.2010

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

@
SendDeathMessage(killerid,playerid,reason);
??


Re: LVDM - Norck - 02.04.2010

Yes, put this at the OnPlayerDeath


Re: LVDM - XxerykxX - 02.04.2010

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


Re: LVDM - pmk1 - 02.04.2010

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.