[FilterScript] TLN's Time, Week & Day System
#1

TLN's Time, Week & Day System




Commands
/time
/setday [day] (RCON)
/settime [time] (RCON)

Credits
Script - TLN
ZCMD - Zeex
Foreach - ******
Sscanf2 - ******

Download
Pastebin
Reply
#2

What about
/settime [hour] [minute]?

This is also a small typo
pawn Код:
if(day > 7 || day < 1) return SendClientMessage(playerid, -1,"{FF0000}Error:{FFFFFF}Choose a day between 0 and 7");
Why between 0 and 7 when script itself is ( day < 1 )
pawn Код:
if(day > 7 || day < 1) return SendClientMessage(playerid, -1,"{FF0000}Error:{FFFFFF}Choose a day between 1 and 7");
Anyways, I appreciate you posting the script.
Cheers!
Reply
#3

@TLN Good Job mate TLN try to make other stuffs!! +rep
Reply
#4

Fixed it, thanks greentarch and PiIIow.
Reply
#5

A nice and clean script. Simple though. Try going more advanced next time.
Reply
#6

Yup, thanks.
Reply
#7

Nice work.
Reply
#8

Thanks.
Reply
#9

Good work.
Reply
#10

Thanks.
Reply
#11

Nice FS, Good job mate.
Reply
#12

Thanks.
Reply
#13

Код:
stock GetWeekName(day, month, year)
{
    new
        sStr[24] = "unknown",
        iBissext = (year % 100),
        iWeekDay = (year / 100);

    if(month < 3) month += 12,year--;
    new iWeek = ((day + (month+1)*26/10 + iBissext + iBissext/4 + iWeekDay/4 - 2*iWeekDay) % 7);

    if(iWeek == 0x0) sStr = "Saturday";
    else if(iWeek == 0x1) sStr = "Sunday";
    else if(iWeek == 0x2) sStr = "Monday";
    else if(iWeek == 0x3) sStr = "Tuesday";
    else if(iWeek == 0x4) sStr = "Wednesday";
    else if(iWeek == 0x5) sStr = "Thursday";
    else if(iWeek == 0x6) sStr = "Friday";
    else sStr = "unknown";

    return sStr;
}
Why don't you use this code?
Reply
#14

I don't know.
Reply
#15

cool job mate xP
Reply
#16

Thanks.
Reply
#17

very nice filterscript too usefull
Reply
#18

Good Work!!
Reply
#19

Thanks, added a new pastebin link.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)