Dialog Help..
#3

Just the short strategy:

Add a global variable, that holds the time of the last spawn change (with GetTickCount()). You will also have to store that value in the players ini.
Then, when he wants to change the spawn point, compare the stored time with the current tick time. If currenttime - storedtime < 86400000ms (24h) and > 0 (GetTickCount goes back to 0 every 24 days) abort the spawn change.
Reply


Messages In This Thread
Dialog Help.. - by Luis- - 16.10.2010, 17:30
Re: Dialog Help.. - by Austin - 16.10.2010, 17:38
Re: Dialog Help.. - by Mauzen - 16.10.2010, 17:42
Re: Dialog Help.. - by Austin - 16.10.2010, 17:45
Re: Dialog Help.. - by cmg4life - 16.10.2010, 19:14

Forum Jump:


Users browsing this thread: 1 Guest(s)