about time and pickup icon.
#5

Quote:
Originally Posted by arachimi
if now 23 o'clock adn I want to disappear icon at 1(am)o'clock


how I set Hour.

Thank's sir.
Top of script
pawn Код:
#define APPEAR_TIME 6 //This is the time it will appear, Change this number to what time you want it to appear at
#define DISAPPEAR_TIME 8 //Change this to what time you want it to dissapear.
So you want it to be:
pawn Код:
#define APPEAR_TIME 23
#define DISAPPEAR_TIME 1
pawn Код:
public CheckTime()
{
    new h,m,s;
    gettime(h,m,s);
    if(h == APPEAR_TIME && m = 0 && s = 0)
    {
        if(PickupShown == 0)
        {
            thepickup=CreatePickup(...);
            PickupShown = 1;
        }
    }
   
    if(h == DISAPPEAR_TIME && m = 0 && s = 0)
    {
        if(PickupShown == 1)
        {
            DestroyPickup(thepickup);
            PickupShown = 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread
about time and pickup icon. - by arachimi - 12.12.2009, 14:47
Re: about time and pickup icon. - by miokie - 12.12.2009, 15:11
Re: about time and pickup icon. - by DJDhan - 12.12.2009, 15:12
Re: about time and pickup icon. - by arachimi - 12.12.2009, 17:09
Re: about time and pickup icon. - by miokie - 12.12.2009, 17:32
Re: about time and pickup icon. - by arachimi - 12.12.2009, 18:48

Forum Jump:


Users browsing this thread: 2 Guest(s)