Milestone System
#1

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

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
Reply
#3

God bless you, I +reped.
Reply
#4

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
Reply
#5

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.
Reply
#6

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?
Reply
#7

Because at each time, the amount gets updating so the message's spamming your chat, that what "Roberto80" was trying to explain.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)