SA-MP Forums Archive
Full clock - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Full clock (/showthread.php?tid=303363)



Full clock - Speed - 13.12.2011

What i can use for full hour??

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


AW: Full clock - BigETI - 13.12.2011

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


Re: AW: Full clock - Speed - 13.12.2011

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!");
    }
?


Re: Full clock - MP2 - 13.12.2011

If the minute is 0 send the message.