SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 27/09/2009, 12:29 PM   #1
virspector
Big Clucker
 
Join Date: Aug 2009
Posts: 74
Reputation: 0
Default [FS] /time For "[FS] Time System (Good for RPG Server)"

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:

Code:
#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...
virspector is offline   Reply With Quote
Old 27/09/2009, 12:44 PM   #2
RaFsTar
Huge Clucker
 
Join Date: Jul 2009
Location: Madeira
Posts: 329
Reputation: 4
Default Re: [FS] /time For "[FS] Time System (Good for RPG Server)"

You could just add this on your other topic ..
RaFsTar is offline   Reply With Quote
Old 27/09/2009, 01:56 PM   #3
virspector
Big Clucker
 
Join Date: Aug 2009
Posts: 74
Reputation: 0
Default Re: [FS] /time For "[FS] Time System (Good for RPG Server)"

Quote:
Originally Posted by RaFsTar
You could just add this on your other topic ..
Maybe u right
virspector is offline   Reply With Quote
Old 03/06/2010, 05:05 AM   #4
Fouz
Little Clucker
 
Join Date: Feb 2010
Posts: 3
Reputation: 0
Default Re: [FS] /time For "[FS] Time System (Good for RPG Server)"

.
Fouz is offline   Reply With Quote
Old 03/06/2010, 02:48 PM   #5
kingdutch
Big Clucker
 
Join Date: Mar 2009
Posts: 49
Reputation: 1
Default Re: [FS] /time For "[FS] Time System (Good for RPG Server)"

+ 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.
kingdutch is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[URGENT] Run time error 19: "File or function is not found" Kyle Scripting Help 17 25/05/2012 05:40 PM
Run time error 20: "Invalid index parameter (bad entry Point" privacy94 Scripting Help 9 21/02/2012 03:56 PM
"Run time error 19: "File or function is not found" TouR Help Archive 2 18/06/2010 10:04 AM
[FilterScript] [FS] Time System (Good for RPG Server) virspector Filterscripts 12 27/09/2009 02:05 PM
Script[gamemodes/****.amx]: Run time error 7: "Stack underflow" Chaprnks Help Archive 2 31/08/2009 04:16 AM


All times are GMT. The time now is 05:50 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.