SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 02/12/2014, 09:40 AM   #1
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,883
Reputation: 1321
Default Analog Clock

This is something I thought of a while ago but never got around to doing it until tonight it is a analog clock you can create multiple ones if you choose to as well another neat feature is you can set the z-rotation to anything you want and the hands will still update.

Functions:

pawn Code:
CreateClock(Float:cx, Float:cy, Float:cz, Float:cangle)
DestroyClock(index)
This requires the streamer for the static objects.
Texture Studio was used to create the clock of course.


PasteBin
http://pastebin.com/rnnUUCy5

Last edited by Pottus; 02/12/2014 at 09:48 PM.
Pottus is offline   Reply With Quote
Old 02/12/2014, 09:51 AM   #2
Alex Magaña
High-roller
 
Alex Magaña's Avatar
 
Join Date: Oct 2012
Location: 𝕭𝖗𝖔𝖙𝖍𝖊𝖗𝖍𝖔𝖔𝖉
Posts: 2,138
Reputation: 218
Default Re: Analog Clock

Cool gj thx 4 sharing
__________________

HOME --- FORUMS --- DISCORD --- SERVER
SAMH: Prop Hunt server is coming soon!
Alex Magaña is offline   Reply With Quote
Old 02/12/2014, 11:58 AM   #3
UltraScripter
Gangsta
 
UltraScripter's Avatar
 
Join Date: Oct 2014
Posts: 802
Reputation: 69
Default Re: Analog Clock

nice!
UltraScripter is offline   Reply With Quote
Old 02/12/2014, 03:56 PM   #4
XtremeR
Gangsta
 
XtremeR's Avatar
 
Join Date: Aug 2012
Location: Australia
Posts: 867
Reputation: 565
Default Re: Analog Clock

Great one, +3.
__________________
XtremeR is offline   Reply With Quote
Old 02/12/2014, 05:37 PM   #5
M0HAMMAD
Gangsta
 
M0HAMMAD's Avatar
 
Join Date: May 2014
Posts: 519
Reputation: 34
Default Re: Analog Clock

WOW !
Amazing !
M0HAMMAD is offline   Reply With Quote
Old 02/12/2014, 07:16 PM   #6
iReacheR
Big Clucker
 
Join Date: Mar 2014
Posts: 50
Reputation: 6
Default Re: Analog Clock

This is nice.
iReacheR is offline   Reply With Quote
Old 02/12/2014, 07:34 PM   #7
Flori
Huge Clucker
 
Flori's Avatar
 
Join Date: Sep 2014
Location: Germany
Posts: 352
Reputation: 26
Default AW: Analog Clock

Great job dude.
Flori is offline   Reply With Quote
Old 02/12/2014, 09:50 PM   #8
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,883
Reputation: 1321
Default Re: Analog Clock

Just a quick update I improved the code for setting the rotation of the clock arms there is no need to recalculate using AttachPoint().
Pottus is offline   Reply With Quote
Old 02/12/2014, 10:41 PM   #9
_Application_
Big Clucker
 
Join Date: Apr 2012
Posts: 142
Reputation: 1
Default Re: Analog Clock

wow!! nicee
_Application_ is offline   Reply With Quote
Old 02/12/2014, 10:53 PM   #10
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,133
Reputation: 445
Default Re: Analog Clock

Seems more like an include though, are you sure this is a filterscript? Anyway, nice job creating the actual clock object!
Abagail 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
Analog out of range wtf Black Wolf Client Support 3 07/10/2012 06:19 AM
Digital or analog?? davve95 Everything and Nothing 4 26/12/2011 01:00 PM
Clock wumpyc Scripting Help 0 26/11/2011 09:59 AM
[FilterScript] [FS]LuX TDC! (The Digital Clock) (Realistic and advanced clock) LuxurioN™ Filterscripts 50 02/02/2011 02:07 PM
[FilterScript] [FS]Car Gun (MTA analog) mysan Filterscripts 27 20/07/2010 09:23 PM


All times are GMT. The time now is 05:15 PM.


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