SA-MP Forums Archive
[FilterScript] [FS] /time For "[FS] Time System (Good for RPG Server)" - 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: [FilterScript] [FS] /time For "[FS] Time System (Good for RPG Server)" (/showthread.php?tid=99374)



[FS] /time For "[FS] Time System (Good for RPG Server)" - virspector - 27.09.2009

See my FS? "Time System (Good for RPG Server)"? I got some cool thing for it.

What's the "COOL" thing? The cool thing is, well, not really cool, but, when you type /time, you'll see the time. So, your players will know what time is the server time. Well, it's so simple. REALLY SIMPLE. For the one who knows how, don't read this. If you read this, just don't LAUGH at it our SMILE on it.

Ok, here it is:

Код:
#define COLOR_SYSTEM2 0x716CFFFF

OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp("/time", cmdtext, true))
	{
	new string[128];
	if(hour > 9)
	{
	  format(string,sizeof(string),"<~> Time: %i:00 <~>", hour);
	}
	else
	{
	  format(string,sizeof(string), "<~> Time: 0%i:00 <~>", hour);
	}
	SendClientMessage(playerid, COLOR_SYSTEM2, string);
	return 1;
	}
}
That's all (PLEASE DON'T LAUGH AT IT, SMILE ON IT, OR... OR.... NEVER MIND! )

Ok, hope helpfull...


Re: [FS] /time For "[FS] Time System (Good for RPG Server)" - RaFsTar - 27.09.2009

You could just add this on your other topic ..


Re: [FS] /time For "[FS] Time System (Good for RPG Server)" - virspector - 27.09.2009

Quote:
Originally Posted by RaFsTar
You could just add this on your other topic ..
Maybe u right


Re: [FS] /time For "[FS] Time System (Good for RPG Server)" - Fouz - 03.06.2010

.


Re: [FS] /time For "[FS] Time System (Good for RPG Server)" - kingdutch - 03.06.2010

+ This will display only the hours, which means it's correct for about a minute and then it'll be incorrect for 59 minutes. And the double number check has an easier way to do it (Or so I've found out by looking at another FS, can't remember which)

other than that, good for sharing for those who aren't too familiar with pawn yet because it does show some basic functionality.