Jump to content

Dan

Moderators
  • Content Count

    403
  • Joined

  • Last visited

  • Days Won

    52

Dan last won the day on February 11

Dan had the most liked content!

Community Reputation

184 Excellent

About Dan

  • Rank
    Sea Captain

Recent Profile Visitors

34,619 profile views

Single Status Update

See all updates by Dan

  1. jojo can u help me ?  i need know  my server time

     

    1. Dan

      Dan

      If you have chathandle functions ->

      cmd.list['time'] = function(role, param)
          if param.n ~= 0 then
              BickerNotice(role, 'This command requires zero parameters! /time')
              return
          end
          SystemNotice(role, 'Server Time: '..os.date('%H')..':'..os.date('%M')..':'..os.date('%S'))
      end

    2. chrisroses
    3. Dan

      Dan

      On Notepad -> file name -> Timer.lua
      **Extension Wise**
      dofile Timer.lua

      do
          RanNotice = {}
          
      end

      RanNotice.Text = {

      }


      function RanNoticeTicking()
          local second, minute = tonumber(os.date('%S')), tonumber(os.date('%M'))
          local every_5_min = math.mod(minute,RanNotice.Every)
          if(every_5_min == 0)then
              if(second == 1)then
                  local total = table.getn(RanNotice.Text)
                  local ran = math.random(1,(total+1))
                  if(ran > total)then
                      Notice(RanNotice.Heading..': Server Time ['..os.date()..']')
                  else
                      Notice(RanNotice.Heading..': '..RanNotice.Text[ran])
                  end
              end
          end
      end
       

    4. Show next comments  6 more
×
×
  • Create New...