Experience MOD ( LUA QUESTION )

Hi , well i was searching on the forum and i found something really good ( BY: Zoey )

And Its For SandBox Server … ( Why ? ) Because you NEED TO KILL NPC’S Or Players To Get Experience… But I Want Help WITH Something NEW.
How I Can Make a Value Or A Line Like
( If you Play 30 Minutes or X Time ) ( You Get 10 Experience )

GAIN EXP WITH PLAYING TIME. NOT WITH KILLING PEOPLE.

Thanks !

Make a timer when they join for every 600 seconds and then give them 10 exp ( that’s for 10 minutes )

Then if they leave at their 599th second, they will have nothing.

OP needs to use sql and save the time when they leave so they can start off where they left off.

Or PData. . .