Milestone System - 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)
+--- Thread: Milestone System (
/showthread.php?tid=589045)
Milestone System -
VirtasVarsketis - 14.09.2015
Hello, I want to ask one thing: Is it possible to do a filterscript that when you get a specific amount of money, for e.x: 10000, you get a specific amount of score, for e.x: 15. Is it possible?
Re: Milestone System -
karemmahmed22 - 14.09.2015
Hmm yup, just Check OnPlayerUpdate, if cash reaches 10k, he takes some score
E.X:
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerMoney(playerid) >= 10000)
{
SetPlayerScore(playerid,15);
}
return 1;
}
Just an example, wrote in forums
Re: Milestone System -
VirtasVarsketis - 14.09.2015
God bless you, I +reped.
Re: Milestone System -
Roberto80 - 14.09.2015
What? This is worng and can be abused as sh!t,just when he get 10k,he win a reward?so someone give him 1$ then he give it back and abuse
Re: Milestone System -
VirtasVarsketis - 14.09.2015
I did not really understand what you are trying to say, I need this milestones for a drift server, when player drifts he gets the money and by getting specific amount of money he gets score.
Re: Milestone System -
VirtasVarsketis - 14.09.2015
And by the way, I got a problem with it, I want it to write a message when player gets a milestone, so I used SendClientMessage, but it keeps spamming. How do I make it to show it only once?
Re : Milestone System -
KillerDVX - 14.09.2015
Because at each time, the amount gets updating so the message's spamming your chat, that what "
Roberto80" was trying to explain.