about time and pickup icon.
#2

Top of Script:
pawn Код:
new PickupShown;
new thepickup;
OnGameModeInit
pawn Код:
SetTimer("CheckTime",1000,1);
Anywhere:
pawn Код:
public CheckTime()
{
    new h,m,s;
    gettime(h,m,s);
    if(h == 6 && m = 0 && s = 0)
    {
        if(PickupShown == 0)
        {
            thepickup=CreatePickup(...);
            PickupShown = 1;
        }
    }
   
    if(h == 8 && m = 0 && s = 0)
    {
        if(PickupShown == 1)
        {
            DestroyPickup(thepickup);
            PickupShown = 0;
        }
    }
    return 1;
}
It's untested but in theory, It will work.
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: 1 Guest(s)