SA-MP Forums Archive
[FilterScript] Gametime + Gameday! - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Gametime + Gameday! (/showthread.php?tid=257071)

Pages: 1 2 3


Gametime + Gameday System 1.3[UPDATED 09/02/13] - Admigo - 23.05.2011

Hi All,

I finally made my first filterscript.

Info
This Filterscript uses 2 textdraws that showing the time(Not realtime) and day(Not realday).
About the time : Every hour takes 60 seconds(IRL)
About the days :The days will be changed after 24 hours and if the week is passed it just starts over again.
The system is similar like the one in singleplayer.(Only the gametime)
To change the colours of the textdraws just change the hex colour at top of the script:
pawn Код:
#define COLOR_TIME 0xFFFFFFFF //Change the colour of the time textdraw here
#define COLOR_DAY  0xFFFFFFFF //Change the colour of the day textdraw here
Commands
pawn Код:
/settime (Hour) (Minute)
/setday (Day)//0=Sunday 1=Monday 2=Tuesday 3=Wednesday 4=Thursday 5=Friday 6=Saturday
Important:To use this commands make sure you are rcon logged in

Changelog
Код:
1.3
- Added a Simple Smooth Lighting System
1.2
- Added WorldTime 
- Added /settime (Hour) (Minute) command
- Added /setday (Dayid) command
- Improved the 1 second timer
- Improved the script view
1.1
- Added Day Textdraw
- Added Week System for Days
1.0
- Added Time Textdraw
- Added 1 Second timer for Time Textdraw
Videos
1.3
[ame]www.youtube.com/watch?v=JQwzSQxiJ4g[/ame]
1.2
[ame]www.youtube.com/watch?v=XmdswuIMcvk[/ame]


Download
1.3
DOWNLOAD


Bugs
Код:
No bugs spotted.
Credits
Код:
****** - sscanf
Ken97 - For the lighting suggestion
Admigo - Scripting
If you have any suggestions to improve this filterscript tell me. Your feedback is welcome.

Admigo


Re : Gametime + Gameday! - Naruto_Emilio - 23.05.2011

Not Bad , 6.5/10


Re: Gametime + Gameday! - Admigo - 23.05.2011

Thanks I am learning scripting. If you have ideas for the timer say it


Re: Gametime + Gameday! - Gauloises - 23.05.2011

Lovin it! 10/10
:P


Re: Gametime + Gameday! - Admigo - 23.05.2011

Thanks you so much Gauloises!


Re: Gametime + Gameday! - Admigo - 23.05.2011

Ooh forgot to say. You can add weather just by add something like this into the public IncreaseTime(playerid)
Код:
if(h == 3 && d == 4 && m ==2)// h== hour d == day m == minute day 1 begins with sunday.
	{
		SetPlayerWeather(playerid,weatherid);//The weather changes at wednesday 3:02
	}



Re: Re : Gametime + Gameday! - Gauloises - 23.05.2011

Quote:
Originally Posted by Naruto_Emilio
Посмотреть сообщение
Not Bad , 6.5/10
As for his first FS,youre giving him a 6.5?.
Lmao,


Re: Gametime + Gameday! - Admigo - 24.05.2011

Just a simple and easy filterscript


Re: Gametime + Gameday! - grand.Theft.Otto - 24.05.2011

Looks awesome, I might replace my old clock with this

10/10


Re: Gametime + Gameday! - LULU - 24.05.2011

Buena


Re: Gametime + Gameday! - Admigo - 25.05.2011

Thank youI use it to


Re: Gametime + Gameday! - X3nZ - 25.05.2011

Looks great!

Nice, 8/10


Re: Gametime + Gameday! - Admigo - 25.05.2011

Its easy to use:P


Re: Gametime + Gameday! - AlternativeDC - 25.05.2011

You are good scripter Nice Work.. Great
10/10'


Re: Gametime + Gameday! - AlternativeDC - 25.05.2011

but ..........
i have 4 warnings
C:\Users\CoolerMaster\Desktop\Server[v2.3]\filterscripts\gametime.pwn(69) : warning 217: loose indentation
C:\Users\CoolerMaster\Desktop\Server[v2.3]\filterscripts\gametime.pwn(73) : warning 217: loose indentation
C:\Users\CoolerMaster\Desktop\Server[v2.3]\filterscripts\gametime.pwn(75) : warning 217: loose indentation
C:\Users\CoolerMaster\Desktop\Server[v2.3]\filterscripts\gametime.pwn(77) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Warnings.


Re: Gametime + Gameday! - Admigo - 25.05.2011

Strange:S i dont have errors. Have you change something in the script?


Re: Gametime + Gameday! - Admigo - 25.05.2011

Lol i see it just delete the space


Re: Gametime + Gameday! - AlternativeDC - 25.05.2011

not i dont hav delete something!
This forum requires that you wait 120 seconds between posts. Please try again in 76 seconds.!!!!!!

Fixed ! fixed now is OK
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Nice!


Re: Gametime + Gameday! - Admigo - 25.05.2011

Nice to hear


Re: Gametime + Gameday! - Raimis_R - 25.05.2011

Quote:
Originally Posted by AlternativeDC
Посмотреть сообщение
but ..........
i have 4 warnings
C:\Users\CoolerMaster\Desktop\Server[v2.3]\filterscripts\gametime.pwn(69) : warning 217: loose indentation
C:\Users\CoolerMaster\Desktop\Server[v2.3]\filterscripts\gametime.pwn(73) : warning 217: loose indentation
C:\Users\CoolerMaster\Desktop\Server[v2.3]\filterscripts\gametime.pwn(75) : warning 217: loose indentation
C:\Users\CoolerMaster\Desktop\Server[v2.3]\filterscripts\gametime.pwn(77) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Read this tutorial: https://sampforum.blast.hk/showthread.php?tid=256961