#1

How can i make like a business but when somebodye buy it to give him money for 5minutes 5000$ ?
Reply
#2

That sentence makes no sense at all...
http://forum.sa-mp.com/search.php
Reply
#3

i know how to make a business system but i dont know how to make to come money every 5 minutes :S
Reply
#4

Use timer. SetTimerEx
Reply
#5

Once the player buys a business, set a timer just like Roko_foko said.
When the timer runs out, give the player $5000.
Reply
#6

OnGameModeInit add
pawn Код:
SetTimer("biztimer",60*5*1000,true);
Somewhere in code: (outside any function)
pawn Код:
forward biztimer();
public biztimer()
{
     for(new i=0;i<MAXBUSINESSONSERVER;i++)
     {
          if(businessEXISTS && businessISOWNED) //replace with biz system variables
          {
                businessMONEY+=5000;
          }
     }
     return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)