[FilterScript] Simple Real Time Clock SA:MP - 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] Simple Real Time Clock SA:MP (
/showthread.php?tid=583397)
Simple Real Time Clock SA:MP -
Mariciuc223 - 28.07.2015
Introduction
• It's a simple filter script that show the date and time ! I Offer support below in comments. Sorry for my bad english
Credits
• SA:MP Team
• Wiper
Screenshot
• Click me - FIRST VERSION
• Click me - UPDATED VERSION
What's new ?
• Removed 'Server Name' text
• Modified: Now textdraw will be shown when player connect (or filterscript it's loaded) instead first version where it is showed at every player spawn ...
• Fixed bug: the date remains on the screen even you unload that filterscript
• Modified : Textdraw.
Download
FIRST VERSION
• Pastebin (PWN)
• SolidFiles (PWN+AMX) [RAR]
• SolidFiles (PWN+AMX) [ZIP]
UPDATED VERSION
• Pastebin
• SolidFiles (PWN+AMX)
Re: Simple Real Time Clock SA:MP -
SpikY_ - 28.07.2015
Awesome work mate. +rep
Better remove that egaming textdraw
Re: Simple Real Time Clock SA:MP -
BladeFire - 28.07.2015
Nice work mate
Re: Simple Real Time Clock SA:MP -
kensun - 28.07.2015
Good Work +rep
Re: Simple Real Time Clock SA:MP -
iTakelot - 28.07.2015
good job, congratulations!
Re: Simple Real Time Clock SA:MP -
SecretBoss - 29.07.2015
Quote:
Originally Posted by SpikY_
Awesome work mate. +rep
Better remove that egaming textdraw
|
Just make callback OnPlayerSpawn like this
Код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, ServerDate);
TextDrawShowForPlayer(playerid, ServerTime);
return 1;
}
As I can see you are showing the textdraws on player spawn, but the timer is OnFilterScriptInit that means that the textdraws will get updated on player's connect, also you get server's time and not each GMT's time
Re: Simple Real Time Clock SA:MP -
jamesmith12 - 30.07.2015
Like it 1REP
Re: Simple Real Time Clock SA:MP -
saffierr - 22.08.2015
Yeah kinda cool, although it's kinda useless, since you play with people all over the world, so the clock would be different from everyone, but if you don't mind that, It's great!