06.09.2018, 17:59
Quote:
In this line:
Код:
new HouseInfo[MAX_HOUSES][hInfo]; PHP код:
|
I want to know will this work. I've seen this in few servers and i'm trying to script it:
PHP код:
new Float:MoneyBagPos[3], MoneyBagActive = 0, MoneyBagLocation[50], MoneyBagPickup;//, MoneyBagTimer[2];
//Hours, Minutes, Seconds, Milliseconds
#define MoneyBagDelay(%1,%2,%3,%4) (%1*3600000)+(%2*60000)+(%3*1000)+%4
//20 = 200,000 minimum 30 = 200,000 -> 500,000
#define MoneyBagCash ((random(30)+20)*10000)
//I want to put it every day in 16:00, what should i set here? How to count? Should i use 24min (1 game day)*60sec gives me 1440seconds
#define MB_DELAY MoneyBagDelay(0, 500, 0, 0) //should i put 0,1440,0,0