PDA

View Full Version : [Include] VClock


ViruZZzZ_ChiLLL
27/07/2010, 10:48 AM
What is this?
Well first of all, this is my first release on Includes =D
and second this is just a simple include (Clock) similar to the
GTA SA Clock only with different styles!


Screen shots?
Sure here :
Style 1 :
http://j.imagehost.org/0383/VClock2.jpg (http://j.imagehost.org/view/0383/VClock2)
Style 2 :
http://i.imagehost.org/0478/VClock3.jpg (http://i.imagehost.org/view/0478/VClock3)
Style 3 :
http://a.imagehost.org/0426/VClock.jpg (http://a.imagehost.org/view/0426/VClock)


Natives :
ToggleVClock(toggle);
SetVClockTime(hour, minute);



Download Link :
Style 1 [Click here] (http://pastebin.com/xs0CnJbB)
Style 2 [Click here] (http://pastebin.com/gd5jLm3A)
Style 3 [Click here] (http://pastebin.com/3CTDzPUc)


Notes :
Credits to :
- TextDrawEditor0.6 (Zamaroht)

Sorry for the crappy images :<

How to install?
1.) Go to the pastebin link.
2.) Copy its contents.
3.) Open Notepad then paste it in their.
4.) Save it in SA-MP Server / pawno / include Folder as a VClock.inc
5.) Enjoy.

Use SetVClockTime instead of SetWorldTime

Found any bugs? Please report them here in this thread =)

Den_Deluxe
27/07/2010, 10:49 AM
wow nice :)

Zh3r0
27/07/2010, 10:49 AM
How about a SetVClockTimeForPlayer ?:D

Awesome script.Nice.

@deluxe, lol, same time.

SlashPT
27/07/2010, 10:59 AM
and why not

ToggleVClock(toggle, style);

??

this would be nice...

Lorenc_
27/07/2010, 11:00 AM
NiCCCCe Include :P

ViruZZzZ_ChiLLL
27/07/2010, 11:08 AM
wow nice :)
thanks =)
How about a SetVClockTimeForPlayer ?:D

Awesome script.Nice.

@deluxe, lol, same time.
Yeah, I've been thinking about for players only,
I'll be scripting that (If I'm not too lazy again -.- )
anyways thanks :P

and why not

ToggleVClock(toggle, style);

??

this would be nice...
hmmm... never though about that O.O

NiCCCCe Include :P
thanks :D

[MWR]Blood
27/07/2010, 11:21 AM
It's really awesome for your first include, my friend!
I will download it and use it for my server! :)

[XST]O_x
27/07/2010, 11:25 AM
Awesome work viruz :D
I like style 2 the most ^.^

Den_Deluxe
27/07/2010, 11:27 AM
PlayOn
rolf :D

Den_Deluxe
27/07/2010, 11:30 AM
How about a SetVClockTimeForPlayer ?:D

Awesome script.Nice.

@deluxe, lol, same time.

Hah :D:D:D

ViruZZzZ_ChiLLL
27/07/2010, 11:48 AM
It's really awesome for your first include, my friend!
I will download it and use it for my server! :)
thanks man =)
O_x;768729']Awesome work viruz :D
I like style 2 the most ^.^
hah, thanks :P

hab2ever
27/07/2010, 12:51 PM
Awesome xD

ViruZZzZ_ChiLLL
27/07/2010, 02:23 PM
Awesome xD
thanks xD

Calgon
27/07/2010, 02:25 PM
Sorry, but every single style looks absolutely disgusting.

ViruZZzZ_ChiLLL
27/07/2010, 02:53 PM
Sorry, but every single style looks absolutely disgusting.
Mmmmkay, everybody has their own sense of style anyways.

rbN.
27/07/2010, 07:01 PM
Hi virus <3..

Does it work like, on real time, or is it a clock not based on real life lol? (if you understand)

<3

Hiddos
27/07/2010, 07:38 PM
18.45 PM

Was that "PM" really necessary? Lmao.

Anyways, not bad ^^

Few things:

I don't quite get your coding:



if(Vhour == 0) return SetWorldTime(0);
if(Vhour == 1) return SetWorldTime(1);
if(Vhour == 2) return SetWorldTime(2);
if(Vhour == 3) return SetWorldTime(3);
if(Vhour == 4) return SetWorldTime(4);
if(Vhour == 5) return SetWorldTime(5);
if(Vhour == 6) return SetWorldTime(6);
if(Vhour == 7) return SetWorldTime(7);
if(Vhour == 8) return SetWorldTime(8);
if(Vhour == 9) return SetWorldTime(9);
if(Vhour == 10) return SetWorldTime(10);
if(Vhour == 11) return SetWorldTime(11);
if(Vhour == 12) return SetWorldTime(12);
if(Vhour == 13) return SetWorldTime(13);
if(Vhour == 14) return SetWorldTime(14);
if(Vhour == 15) return SetWorldTime(15);
if(Vhour == 16) return SetWorldTime(16);
if(Vhour == 17) return SetWorldTime(17);
if(Vhour == 18) return SetWorldTime(18);
if(Vhour == 19) return SetWorldTime(19);
if(Vhour == 20) return SetWorldTime(20);
if(Vhour == 21) return SetWorldTime(21);
if(Vhour == 22) return SetWorldTime(22);
if(Vhour == 23) return SetWorldTime(23);
return 1;

Why not:

return SetWorldTimer(Vhour);

Also, I'd code it a bit different :P

willsuckformoney
28/07/2010, 04:39 AM
nice, I like 3, i has it now!

<Weponz>
28/07/2010, 04:57 AM
WoW Thats Kool Include :D