SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 27/07/2011, 07:09 AM   #1
DragonYancy
Big Clucker
 
Join Date: Jun 2011
Posts: 77
Reputation: 0
Default Timers Help!

I want to make a timer wich it gives money each 600 seconds...
How can I make this timer?
DragonYancy is offline  
Old 27/07/2011, 07:13 AM   #2
[HiC]TheKiller
High-roller
 
Join Date: Mar 2008
Location: New Zealand
Posts: 2,630
Reputation: 410
Default Re: Timers Help!

pawn Code:
public OnPlayerConnect(playerid)
{
    SetTimerEx("givecash", 600000, "d", playerid);
    return 1;
}

forward givecash(playerid);
public givecash(playerid)
{
    GivePlayerMoney(playerid, /*Money*/);
    return 1;
}
__________________
[HiC]TheKiller is offline  
Old 27/07/2011, 07:14 AM   #3
MyLife
Big Clucker
 
Join Date: Mar 2010
Posts: 79
Reputation: 2
Default Re: Timers Help!

pawn Code:
SetTimerEx("GiveCash",600000,0,"ii",playerid,money);

EDIT: [HiC]TheKiller fast than me >_<'
MyLife is offline  
Old 27/07/2011, 07:14 AM   #4
Max_Coldheart
Guest
 
Posts: n/a
Default Re: Timers Help!

First you must create the timer, then you set it to 600 seconds, and repeating.
Then once it reaches 600 seconds, give people money with GivePlayerMoney(id, money);

Regards
Max_Coldheart

Quote:
Originally Posted by SA:MP
This forum requires that you wait 120 seconds between posts. Please try again in 59 seconds.
 
Old 27/07/2011, 07:15 AM   #5
DragonYancy
Big Clucker
 
Join Date: Jun 2011
Posts: 77
Reputation: 0
Default Re: Timers Help!

Thank you TheKiller!
DragonYancy is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timers farmer1710 Help Archive 2 22/04/2011 09:31 PM
Timers ScottCFR Help Archive 6 10/10/2010 04:23 PM
2 timers into one ArTisT Help Archive 3 31/05/2010 01:22 PM
timers Lajko1 Help Archive 6 09/12/2009 06:19 AM
timers KnooL Help Archive 0 05/12/2009 09:21 PM


All times are GMT. The time now is 09:19 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.