1000$ every minute - 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: 1000$ every minute (
/showthread.php?tid=90183)
1000$ every minute -
nuriel8833 - 06.08.2009
how can i do that since player registers until 24 hours since he has benn registers he will get 1000$ every minute?
tanks
Re: 1000$ every minute -
shady91 - 06.08.2009
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.
Re: 1000$ every minute -
nuriel8833 - 06.08.2009
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?
Re: 1000$ every minute -
shady91 - 06.08.2009
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.
Re: 1000$ every minute -
nuriel8833 - 06.08.2009
I know how to create timers but i dont know how to make them work.
thats what im asking for
Re: 1000$ every minute -
shady91 - 06.08.2009
yes once im back i will make so it read if players played over an hour, but its simple you make it.
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.
Re: 1000$ every minute -
nuriel8833 - 07.08.2009
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
Re: 1000$ every minute -
ruarai - 07.08.2009
That would give the player 1000$ every 12 hours
Re: 1000$ every minute -
nuriel8833 - 07.08.2009
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?
Re: 1000$ every minute -
Abernethy - 07.08.2009
https://sampwiki.blast.hk/wiki/KillTimer