[FilterScript] [FS] /time For "[FS] Time System (Good for RPG Server)"
#1

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

You could just add this on your other topic ..
Reply
#3

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

.
Reply
#5

+ 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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)