SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 23/05/2011, 09:57 PM   #1
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,840
Reputation: 297
Post Gametime + Gameday System 1.3[UPDATED 09/02/13]

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 Code:
#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 Code:
/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
Code:
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
Code:
No bugs spotted.
Credits
Code:
****** - sscanf
Ken97 - For the lighting suggestion
Admigo - Scripting
If you have any suggestions to improve this filterscript tell me. Your feedback is welcome.

Admigo
Attached Images
File Type: jpg sa-mp-139.jpg (116.8 KB, 2869 views)

Last edited by Admigo; 17/02/2018 at 08:50 AM. Reason: New Version
Admigo is offline   Reply With Quote
Old 23/05/2011, 10:08 PM   #2
Naruto_Emilio
Banned
 
Join Date: Apr 2011
Location: North Africa
Posts: 1,297
Reputation: 365
Default Re : Gametime + Gameday!

Not Bad , 6.5/10
Naruto_Emilio is offline   Reply With Quote
Old 23/05/2011, 10:10 PM   #3
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,840
Reputation: 297
Default Re: Gametime + Gameday!

Thanks I am learning scripting. If you have ideas for the timer say it
__________________
Follow me on Instagram @brandonvanommen
Admigo is offline   Reply With Quote
Old 23/05/2011, 10:13 PM   #4
Gauloises
Little Clucker
 
Join Date: May 2011
Posts: 33
Reputation: 1
Default Re: Gametime + Gameday!

Lovin it! 10/10
:P
Gauloises is offline   Reply With Quote
Old 23/05/2011, 10:17 PM   #5
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,840
Reputation: 297
Default Re: Gametime + Gameday!

Thanks you so much Gauloises!
__________________
Follow me on Instagram @brandonvanommen
Admigo is offline   Reply With Quote
Old 23/05/2011, 10:23 PM   #6
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,840
Reputation: 297
Default Re: Gametime + Gameday!

Ooh forgot to say. You can add weather just by add something like this into the public IncreaseTime(playerid)
Code:
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
	}
__________________
Follow me on Instagram @brandonvanommen
Admigo is offline   Reply With Quote
Old 23/05/2011, 11:14 PM   #7
Gauloises
Little Clucker
 
Join Date: May 2011
Posts: 33
Reputation: 1
Default Re: Re : Gametime + Gameday!

Quote:
Originally Posted by Naruto_Emilio View Post
Not Bad , 6.5/10
As for his first FS,youre giving him a 6.5?.
Lmao,
Gauloises is offline   Reply With Quote
Old 24/05/2011, 06:19 PM   #8
Admigo
High-roller
 
Admigo's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,840
Reputation: 297
Default Re: Gametime + Gameday!

Just a simple and easy filterscript
__________________
Follow me on Instagram @brandonvanommen
Admigo is offline   Reply With Quote
Old 25/05/2011, 12:21 AM   #9
grand.Theft.Otto
High-roller
 
grand.Theft.Otto's Avatar
 
Join Date: Sep 2010
Location: Canada
Posts: 1,059
Reputation: 65
Default Re: Gametime + Gameday!

Looks awesome, I might replace my old clock with this

10/10
__________________


grand.Theft.Otto is offline   Reply With Quote
Old 25/05/2011, 12:49 AM   #10
LULU
Little Clucker
 
LULU's Avatar
 
Join Date: Dec 2009
Posts: 49
Reputation: 1
Default Re: Gametime + Gameday!

Buena
LULU is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Gametime! Admigo Help Archive 2 21/05/2011 12:58 PM
Gameday Admigo Help Archive 4 30/04/2011 03:05 PM
Help with gametime BASITJALIL Help Archive 10 07/03/2011 07:47 AM
*-- Gametime System Memoryz Help Archive 5 17/01/2010 12:13 PM
Im dumb or it needs something ??? (gametime) Divine Help Archive 2 31/03/2009 11:01 AM


All times are GMT. The time now is 09:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.