SA-MP Forums Archive
Christmas Countdown - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Christmas Countdown (/showthread.php?tid=112564)



Christmas Countdown - Mrkrabz - 08.12.2009

Well i had this in my old server before, which was a Textdraw which counted down till Christmas I cant remember how i did it since i have sort of not scripted in a while :<


Re: Christmas Countdown - Malice - 08.12.2009

Are you looking for something similar?

Quick thought:
Assuming you know all about textdraws...
pawn Код:
new d2xmas = xmasday - getdate(); // Days till' Xmas
You will have to figure out what day Christmas is, and don't say the 25th. I mean from 1 - 365.

The rest is a matter of creating the textdraw, formatting the string, all that boring stuff.



Re: Christmas Countdown - Mrkrabz - 08.12.2009

Quote:
Originally Posted by Malice
Are you looking for something similar?

Quick thought:
Assuming you know all about textdraws...
pawn Код:
new d2xmas = xmasday - getdate(); // Days till' Xmas
You will have to figure out what day Christmas is, and don't say the 25th. I mean from 1 - 365.

The rest is a matter of creating the textdraw, formatting the string, all that boring stuff.
Thanks


Re: Christmas Countdown - Joe Staff - 08.12.2009

I made this exact same thing last year, but I can't seem to be able to find it. Were the databases deleted some time ago?

I'm remaking it into a filterscript which has a modifiable date.

Here you go
http://joestaff.pastebin.com/f3443707a
Just remember to change the date before compiling.