I need a help with date system
#1

HI
I wanna make a salary system that based in date system
example
player join date is 5/4/2017
player will get salary at 10/4/2017
how can i?
Reply
#2

1. Save player join date with gettime();
2. Check:

Код:
if(player join date + 432000 >= gettime())
432000 = five days in seconds.

3. Give salary under if.
Reply
#3

Read more here: https://sampforum.blast.hk/showthread.php?tid=254915]
Reply
#4

Quote:
Originally Posted by raydx
Посмотреть сообщение
1. Save player join date with gettime();
2. Check:

Код:
if(player join date + 432000 >= gettime())
432000 = five days in seconds.

3. Give salary under if.
Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Thanks guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)