CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 09:31:22 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=12097129ca2f9adadbd3b3fc6a55aaededae1d98a699faf5381dd9466d0e9119a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22liAAyQKgH8PUtETxQoIEyEYMjyLSqLrk%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cd5818bcb0c172-BLR
integer time; /* * Submitted Opensource under GPL 3.0 * 2010 Fire Ce - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer time;
- /*
- * Submitted Opensource under GPL 3.0
- * 2010 Fire Centaur
- * Description:
- *
- * Input number of seconds, function will return a string with Days, Hours, Minutes, Seconds
- * Corrections by Traven Sachs to Display Correct Output allowing for 0 seconds or more than 1 day
- * and improve readability with whitespace 19-Feb-2011
- */
- string getTime(integer secs)
- {
- string timeStr;
- integer days;
- integer hours;
- integer minutes;
- if (secs>=86400)
- {
- days=llFloor(secs/86400);
- secs=secs%86400;
- timeStr+=(string)days+" day";
- if (days>1)
- {
- timeStr+="s";
- }
- if(secs>0)
- {
- timeStr+="\n";
- }
- }
- if(secs>=3600)
- {
- hours=llFloor(secs/3600);
- secs=secs%3600;
- timeStr+=(string)hours+" hour";
- if(hours!=1)
- {
- timeStr+="s";
- }
- if(secs>0)
- {
- timeStr+="\n";
- }
- }
- if(secs>=60)
- {
- minutes=llFloor(secs/60);
- secs=secs%60;
- timeStr+=(string)minutes+" minute";
- if(minutes!=1)
- {
- timeStr+="s";
- }
- if(secs>0)
- {
- timeStr+="\n";
- }
- }
- if (secs>0)
- {
- timeStr+=(string)secs+" second";
- if(secs!=1)
- {
- timeStr+="s";
- }
- }
- return timeStr;
- }
- string loop;
- integer total_time;
- default
- {
- state_entry()
- {
- llListen(888, "", "", "START");
- }
- touch_end(integer total_number)
- {
- state start;
- }
- listen( integer channel, string name, key id, string message )
- {
- if(message == "START")
- state start;
- }
- }
- state start
- {
- state_entry()
- {
- time = 0;
- llListen(888, "", "", "");
- llSetTimerEvent(1);
- // loop = "";
- total_time = 0;
- }
- touch_end(integer num)
- {
- state default;
- }
- state_exit()
- {
- llSetText(getTime(time), <0.180, 0.800, 0.251>, 1.0);
- llSetTimerEvent(0);
- }
- listen( integer channel, string name, key id, string message )
- {
- //llSay(0, message);
- if(message == "STOP")
- {
- llSetTimerEvent(0);
- llSetText(getTime(time), <0.180, 0.800, 0.251>, 1.0);
- state default;
- }
- // if(message == "RESET")
- // {
- // time = 0;
- // loop += ".";
- // }
- }
- timer()
- {
- llSetText(getTime(total_time++), <1.000, 0.255, 0.212>, 1.0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Make $1500 in 20 minutes⭐⭐
Java | 2 sec ago | 0.10 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ T
JavaScript | 5 sec ago | 0.24 KB
-
⭐✅ Trading Profit Method ✅ NEVER SEEN BEFORE...
JavaScript | 8 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ D
JavaScript | 14 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ V
JavaScript | 17 sec ago | 0.24 KB
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 20 sec ago | 0.24 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ L
JavaScript | 25 sec ago | 0.24 KB
-
⭐⭐⭐Make $1500 in 20 minutes⭐⭐
Java | 25 sec ago | 0.10 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand