Jump to content

Add Expired Date for Lua Script ( TuTorial ).


TopGEOYT

Recommended Posts

Hello Guys .

There Was Many Questions About How To Add End Date For Script .

It Is Very Easy . Just Follow This Simple Codes :

 

Date = "20190316"--Type Here Your Script End Date .
date = os.date("%Y%m%d")
if date >= Date then
  print([[⚠ SCRIPT EXPIRED ⚠
  
NEW VERSION AVAILABLE]])
  return
  end
  -- Type Your Script Codes Bellow and If Script Isn't Expired Then Script Will Run. 
gg.alert("WELCOME")

 

Date Ender.lua

Link to comment
Share on other sites

  • 3 weeks later...
On 4/2/2019 at 2:29 PM, TopGEOYT said:

Hello Guys .

There Was Many Questions About How To Add End Date For Script .

It Is Very Easy . Just Follow This Simple Codes :

 

Date = "20190316"--Type Here Your Script End Date .
date = os.date("%Y%m%d")
if date >= Date then
  print([[⚠ SCRIPT EXPIRED ⚠
  
NEW VERSION AVAILABLE]])
  return
  end
  -- Type Your Script Codes Bellow and If Script Isn't Expired Then Script Will Run. 
gg.alert("WELCOME")

 

Date Ender.lua 279 B · 10 downloads

Good 🙂

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.