1000$ every minute
#1

how can i do that since player registers until 24 hours since he has benn registers he will get 1000$ every minute?
tanks
Reply
#2

make so it goes up once every hour like connected time then one then set a timer for every 1 min to players with 1 hour or over connected get $1000 if you set up connected time make it go up every 1 hour sync. ill make the code for you.
Reply
#3

Quote:
Originally Posted by Shady91
make so it goes up once every hour like connected time then one then set a timer for every 1 min to players with 1 hour or over connected get $1000 if you set up connected time make it go up every 1 hour sync. ill make the code for you.
and how the hell to do that?
do you need my register system or something?
Reply
#4

erm



when im back i will post what you need to add were you need to add you can edit it into your script. then ill add the code to pay players who played over an hour $1000 its really really simple.
Reply
#5

I know how to create timers but i dont know how to make them work.
thats what im asking for
Reply
#6

yes once im back i will make so it read if players played over an hour, but its simple you make it.

pawn Код:
forward timer();
pawn Код:
public timer()
 {
 for( new i = 0; i < MAX_PLAYERS; i++ )
 {
 if(PlayerInfo[i][Connected] > 1)
 {
 GivePlayerMoney(i,1000);
 return 1;
 }
then ongamemodeinit

pawn Код:
SetTimer("timer",60000,true);
like that dont copy it coz it wont work thats jsut an exsample but you need to make so it saves players playing time. then i can make it for you.
Reply
#7

But it will give them every time that they are connected i need that they will get it only in their 1st day OK?

Modify:
wait maybe this one is gonna work:

SetTimer("timer",60000*1440,true);

there are 1440 minutes in a day
can i use also destroytimer to delete the timer
Reply
#8

That would give the player 1000$ every 12 hours
Reply
#9

Quote:
Originally Posted by яυαяαι
That would give the player 1000$ every 12 hours
ohhh
but to use destroytimer to destroy the timer after 24 hours?
Reply
#10

https://sampwiki.blast.hk/wiki/KillTimer
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)