SA-MP Forums Archive
FS] - Clock Made Easy [1hr = 60mins, 1min = 60sec's] - 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: FS] - Clock Made Easy [1hr = 60mins, 1min = 60sec's] (/showthread.php?tid=6439)

Pages: 1 2


FS] - Clock Made Easy [1hr = 60mins, 1min = 60sec's] - Kapil - 10.07.2007

After a huge flame in the General Discussions Forum it has now beed updated and Striked Script Showroom also. But this time in the form of a filterscript !

What is it ?
This is a addon to your gamemode or script which creates a clock, like the one in Single Player. It has a perfect placement and transperent border which adds more reputations to its look.

What does it do ?
It collects the information about the current Time from your PC(i.e from where u r hosting your server) and arrages the clock at the top so that everyone who joins your server can see it.

lol ! I can do it with just TogglePlayerClock ! then why is this for ?

Yes u can just make a clock in your gamemode with just TogglePlayerClock, but the thing is that clock has unit 1min = 1 sec and 1hr = 60sec, and most of the rpg scripts cant use it as they give paydays and etc according to the time.

How about its tests ?

All the tests went fine, many were involved in testing it. Its a gaurentee that there r no bugs in it too.

How do I install it ?
-> Download ClockMadeEasy.
-> Unzip them into your SAMP folder.
-> Open server.cfg.
-> Replace "filterscripts adminspec actions" to "filterscripts adminspec actions Clock".
-> Save and Close server.cfg.

Cool ! But how does it look in my gamemode ? Any Screenshots ?



Whats new in this Update ?
-> The clock size and position has been fixed.
-> The clock will also have effect in the weather.
-> Transperent border is removed to dark black border.

Downloads -

It includes both .amx and .pwn files. <BLOCKED>

NOTE: It was a clear distrumptinon that there are no bugs and there will be no bugs, But still if u found any bugs dont ever hesitate to repley in this forum.


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Tornado - 10.07.2007

Nice


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Malice - 10.07.2007

Awesome, works great. You could shorten it to a measly 36 lines though if you want.
pawn Code:
forward time();
#include <a_samp>
#define FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------");
    print("Clock by Kapil");
    print("--------------\n");
    return 1;
}

public OnPlayerConnect(playerid)
{
    time();
    return 1;
}

public time(){
new Text:Clock;
TextDrawDestroy(Clock);
new hour,minute,second;
gettime(hour,minute,second);
new string[256];
if (minute <= 9){format(string,25,"%d:0%d",hour,minute);}
else {format(string,25,"%d:%d",hour,minute);}
TextDrawHideForAll(Clock);
Clock=TextDrawCreate(552,28,string);
TextDrawLetterSize(Clock,0.5,1.8);
TextDrawFont(Clock,3);
TextDrawBackgroundColor(Clock,40);
TextDrawSetOutline(Clock,2);
TextDrawShowForAll(Clock);
SetTimer("time",30000,0);
return 1;
}



Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Warriors_Tornado - 10.07.2007

i had longer but thats not the problem


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - onehels - 10.07.2007

I have lag with this FS!
In map "Public Enemy LS" do not work commands of map!
Plz fix this!


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Kapil - 10.07.2007

Quote:
Originally Posted by onehels
I have lag with this FS!
In map "Public Enemy LS" do not work commands of map!
Plz fix this!
omg I forgot it !!! thank U for remembering me and anyway I have fixed and updated it !


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Malice - 10.07.2007

Actually I don't think that will work, after shortening it myself I tested and saw it didn't work which is why I left
pawn Code:
public OnPlayerConnect(playerid)
{
    time();
    return 1;
}
in the code... The version I posted works and is the shortest.
Quote:
Originally Posted by Warriors_Tornado
i had longer but thats not the problem
@ Warriors, the version I posted wasn't the one I got, I shortened it.
Edit: Yea, the new version is missing what I put... The version I posted before is shortened and working, just compile that.


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - onehels - 10.07.2007

Quote:
Originally Posted by Kapil
Quote:
Originally Posted by onehels
I have lag with this FS!
In map "Public Enemy LS" do not work commands of map!
Plz fix this!
omg I forgot it !!! thank U for remembering me and anyway I have fixed and updated it !
Ok, when fix say plz


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Duelos SA - 10.07.2007

Not work for me

regards


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Kapil - 10.07.2007

Quote:

Ok, when fix say plz

I said i fixed it.

Quote:

Not work for me

well did u made changes in the server.cfg ?


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - onehels - 10.07.2007

Quote:
Originally Posted by Kapil
I said i fixed it.
Now watch did not work=(
My server SAMP 0.2.0


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Duelos SA - 10.07.2007

Quote:
Originally Posted by Kapil
Quote:

Ok, when fix say plz

I said i fixed it.

Quote:

Not work for me

well did u made changes in the server.cfg ?
Of course i have add the srcipt in CFG, but dont work


regards


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Kapil - 10.07.2007

Updated, Redownload plizzzz....as i used to say.

Quote:

An Err is for Mankind, To forgive is for GOD

lol


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - onehels - 10.07.2007

Now all work good!
Nice script!


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - [SMB]Bip - 10.07.2007

works perfect on my server thanks mate


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - MaTrIx4057 - 10.07.2007

Yeah good work man.


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Alejandro - 10.07.2007

i enable this in server.cfg, but i dont see the clock.


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Kapil - 11.07.2007

Quote:
Originally Posted by Alejandro
i enable this in server.cfg, but i dont see the clock.
maybe u downloaded the old version of it, try redownloading.


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Alejandro - 11.07.2007

yep that was it. nice, i love the way it looks. u da man kapil :P


Re: FS] - Clock Made Easy [1hr - 60mins, 1min = 60sec's] - Ze B@ND!D0 - 11.07.2007

Works perfectly!