payday hour
#1

Hello

I want to make so you get the payday every :00 ( hour )
can anybody help me its currently set to every 3600 seconds?
Reply
#2

This may help you.

https://sampwiki.blast.hk/wiki/Gettime
Reply
#3

set a global variable eg 'new lasthour' under gamemode init, set it to the server time hour
Put gettime(hour,minute,second) under a 60 second timer
check if hour > lasthour in the timer, if it is, call your payday function
at the end of the payday function, set lasthour to hour.
Reply
#4

Quote:
Originally Posted by Pawno_Master
Посмотреть сообщение
Quote:
Originally Posted by Rachael
Посмотреть сообщение
set a global variable eg 'new lasthour' under gamemode init, set it to the server time hour
Put gettime(hour,minute,second) under a 60 second timer
check if hour > lasthour in the timer, if it is, call your payday function
at the end of the payday function, set lasthour to hour.
Thanks its working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)