How to make expire system
#6

Using Time Stamp with number variables.

Example:

Quote:

new YourVariable;

// Stored Date
YourVariable = gettime() + 25200 +3600;
// 25200 is a fix number to get it sync real time
// 3600 is the expired time, change it to the expired time you want (https://sampforum.blast.hk/showthread.php?tid=254915%5D)

// Check
if(gettime() > YourVariable) // Expried
{
// Do something here
}

Reply


Messages In This Thread
How to make expire system - by Jokers98s - 23.01.2018, 14:58
Re: How to make expire system - by Jokers98s - 23.01.2018, 16:32
Re: How to make expire system - by GTLS - 23.01.2018, 17:12
Re: How to make expire system - by ISmokezU - 23.01.2018, 17:35
Re: How to make expire system - by Jokers98s - 24.01.2018, 01:40
Re: How to make expire system - by Chocopie - 24.01.2018, 02:13
Re: How to make expire system - by Jokers98s - 24.01.2018, 02:43
Re: How to make expire system - by Chocopie - 24.01.2018, 02:46
Re: How to make expire system - by edyun - 24.01.2018, 06:09

Forum Jump:


Users browsing this thread: 1 Guest(s)