How can I calculate the time between two dates - 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)
+--- Thread: How can I calculate the time between two dates (
/showthread.php?tid=477102)
How can I calculate the time between two dates -
TakeAllEasy - 22.11.2013
hey, i want to do temp ban and i need help. tnx
Re: How can I calculate the time between two dates -
Djole1337 - 22.11.2013
pawn Код:
new
CalcTime = gettime() + 86400; // 1 day ban
// Now you can store it somewhere and do like
// on player connect
// fetch 'CalcTime' var
if (StoredBanLenVar > gettime())
{
// still banned
}
Re: How can I calculate the time between two dates -
TakeAllEasy - 22.11.2013
tnx, i want to know what is the date of the ban end, you can help me?