Question
#3

Create timer to check

example (y_timer):

pawn Код:
new DoubleXP = 0;
new HappyHour[2] =
{
    6, // Start
    8 // End
}
new h,m,s;

timer ServerHeart[1000]()
{
    gettime(h, m, s);
    if(DoubleXP == 0 & h == HappyHour[0])
    {
        DoubleXP = 1;
        SendClientMessageToAll(-1, "Double Xp Start!");
    }
    else if(DoubleXP == 1 & h >= HappyHour[1])
    {
        DoubleXP = 0;
        SendClientMessageToAll(-1, "Double Xp End!");
    }
}
Reply


Messages In This Thread
Question - by kamiliuxliuxliux - 26.06.2014, 21:14
Re: Question - by ExplorerCommunity - 26.06.2014, 23:15
Re: Question - by rickisme - 27.06.2014, 02:55

Forum Jump:


Users browsing this thread: 1 Guest(s)