[Help] Saving Character online time.
#5

Time function
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;
    }
Edit: This is a reply to
Quote:

also, on another note, if anyone knows a good /time command tutorial or FS, that would be helpful

Reply


Messages In This Thread
[Help] Saving Character online time. - by Mowgli - 01.09.2009, 00:09
Re: [Help] Saving Character online time. - by Yuryfury - 01.09.2009, 02:01
Re: [Help] Saving Character online time. - by brett7 - 01.09.2009, 02:02
Re: [Help] Saving Character online time. - by snoob - 01.09.2009, 04:41
Re: [Help] Saving Character online time. - by Abernethy - 01.09.2009, 05:52

Forum Jump:


Users browsing this thread: 1 Guest(s)