01.09.2009, 05:52
Time function
by Abernethy
Edit: This is a reply to
by Abernethy
pawn Код:
forward ShowPlayerTime(playerid);
public ShowPlayerTime(playerid)
{
new string[128];
new year,month,day; getdate(year, month, day);
new hour,minute,second; gettime(hour,minute,second);
format(string, sizeof(string), " The current Date is %d/%d/%d Time: %d:%d:%d", day, month ,year, hour, minute, second);
SendClientMessage(playerid, 0x40a5ecFF, string);
return true;
}
pawn Код:
if (strcmp("/time", cmdtext, true) == 0)
{
ShowPlayerTime(playerid);
return true;
}
Quote:
|
also, on another note, if anyone knows a good /time command tutorial or FS, that would be helpful |

