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

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

Nice
Reply
#3

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

i had longer but thats not the problem
Reply
#5

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

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

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

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

Not work for me

regards
Reply
#10

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 ?
Reply
#11

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

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

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

Quote:

An Err is for Mankind, To forgive is for GOD

lol
Reply
#14

Now all work good!
Nice script!
Reply
#15

works perfect on my server thanks mate
Reply
#16

Yeah good work man.
Reply
#17

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

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

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

Works perfectly!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)