Full clock
#1

What i can use for full hour??

If is 1pm 2:00pm, 3:00pm.... (full hours) send player a Message... Can you help?
Reply
#2

Get the current system time by this func below:
https://sampwiki.blast.hk/wiki/Gettime

Chat functions:
https://sampwiki.blast.hk/wiki/SendClientMessage
https://sampwiki.blast.hk/wiki/SendClientMessageToAll
Reply
#3

Quote:
Originally Posted by BigETI
Посмотреть сообщение
yes, i use Gettime, but can you told me is that good?

pawn Код:
new Sati, Min, Sec;
    gettime(Sati, Min, Sec);
    if(Sati == 0 && Min == 0 && Sec == 0 || Sati == 1 && Min == 0 && Sec == 0 || Sati == 2 && Min == 0 && Sec == 0 || Sati == 3 && Min == 0 && Sec == 0 || Sati == 4 && Min == 0 && Sec == 0 || Sati == 5 && Min == 0 && Sec == 0 || Sati == 6 && Min == 0 && Sec == 0 || Sati == 7 && Min == 0 && Sec == 0 || Sati == 8 && Min == 0 && Sec == 0 || Sati == 9 && Min == 0 && Sec == 0 || Sati == 10 && Min == 0 && Sec == 0)
    {
        SendClientMessage(playerid, COLOR_RED, "Now is full clock!");
    }
?
Reply
#4

If the minute is 0 send the message.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)