[FilterScript] Gametime + Gameday!
#1

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
Reply
#2

Not Bad , 6.5/10
Reply
#3

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

Lovin it! 10/10
:P
Reply
#5

Thanks you so much Gauloises!
Reply
#6

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
	}
Reply
#7

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

Just a simple and easy filterscript
Reply
#9

Looks awesome, I might replace my old clock with this

10/10
Reply
#10

Buena
Reply
#11

Thank youI use it to
Reply
#12

Looks great!

Nice, 8/10
Reply
#13

Its easy to use:P
Reply
#14

You are good scripter Nice Work.. Great
10/10'
Reply
#15

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.
Reply
#16

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

Lol i see it just delete the space
Reply
#18

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!
Reply
#19

Nice to hear
Reply
#20

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)