Within 24Hours INGAME help [+REP]
#7

When user registers, save current timestamp. Something like:
pawn Код:
new curTimestamp = gettime(playerid);
Then when he joins again, again, get current timestamp, read timestamp from when he registered(from where you saved it), and substract it from current one. Then just check if the result is bigger then 86400 (that is 24h in seconds), if it is 24h have passed.
Reply


Messages In This Thread
Within 24Hours INGAME help [+REP] - by Xportaler - 05.04.2017, 17:24
Re: Within 24Hours INGAME help [+REP] - by AndreiWow - 05.04.2017, 17:29
Re: Within 24Hours INGAME help [+REP] - by Xportaler - 05.04.2017, 17:32
Re: Within 24Hours INGAME help [+REP] - by AndreiWow - 05.04.2017, 17:35
Re: Within 24Hours INGAME help [+REP] - by Xportaler - 05.04.2017, 17:37
Re: Within 24Hours INGAME help [+REP] - by AndreiWow - 05.04.2017, 17:43
Re: Within 24Hours INGAME help [+REP] - by DRIFT_HUNTER - 05.04.2017, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)