Free money everyminute
#1

Hi all,i wanna make the server gives free money at player for every minute he play.

How'?Thanks.
Reply
#2

Use SetTimer and GivePlayerMoney.

I assume you've read the Pawn manual already, so what's stopping you from making an attempt at least?
Reply
#3

Quote:

I assume you've read the Pawn manual already, so what's stopping you from making an attempt at least?

Already done,just asking here if someone know a faster way.

BTW Thanks.
Reply
#4

Well how can we tell you a faster way if we don't know what you've already tried?
Reply
#5

You'll need: this and this too.

Edit: damn, too slow.
Reply
#6

Hehehe thanks,Done.
Reply
#7

pawn Code:
forward GivemOneY(playerid);

//ongamemodeinit
SetTimer("GivemOneY",60000,1);// 60000ms = 60 seconds = 1 minute

public GivemOneY(playerid)
{
    GivePlayerMoney(playerid, 100);//100 :D
    return 1;
}
Reply
#8

Quote:
Originally Posted by Clive
View Post
pawn Code:
forward GivemOneY(playerid);

//ongamemodeinit
SetTimer("GivemOneY",60000,1);// 60000ms = 60 seconds = 1 minute

public GivemOneY(playerid)
{
    GivePlayerMoney(playerid, 100);//100 :D
    return 1;
}
How would that work? You're never passing an ID to the function.
Reply
#9

Quote:
Originally Posted by JaTochNietDan
View Post
How would that work? You're never passing an ID to the function.
I don't know, im using it and its fine works for me.
Reply
#10

Have you tested it with more than 1 person who's ID happens to be 0? Which is the only ID it'll work for.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)