The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stop timer if user logout and continue if is online
Author Message
Criminal
Journeyman
*

Posts: 182
Likes Given: 38
Likes Received: 22 in 22 posts
Joined: Jun 2015
Reputation: 0

SantiagoUO.com

Post: #1
Stop timer if user logout and continue if is online
well, I check and if i equip a memory to a player and set a timer, it will count if is online or logout, i want limit it only if user is online, is there any way?
or delete the mem and set a tag on logout with timer left

[Image: mfqAZnj.png]
Discord: SantiagoUO
Skype:
criminaluo
09-30-2015 04:48 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
evening
Journeyman
*

Posts: 138
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #2
RE: Stop timer if user logout and continue if is online
if (<src.isonline>)
sysmessage online
else
sysmessage offline
endif
09-30-2015 04:54 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #3
RE: Stop timer if user logout and continue if is online
Add logout/login checks to restore it
09-30-2015 05:51 PM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #4
RE: Stop timer if user logout and continue if is online
You need an event related to this player like this:
Code:
[EVENTS e_my_event]
ON=@Login
src.findlayer(30).findid(my_memory).timer=<src.tag.mytimer>

ON=@LogOut
src.tag.mytimer=<src.findlayer(30).findid(my_memory).timer>
src.findlayer(30).findid(my_memory).timer=-1

Grandmaster Localhost Admin
10-05-2015 08:43 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Kanibal's post
Criminal
Journeyman
*

Posts: 182
Likes Given: 38
Likes Received: 22 in 22 posts
Joined: Jun 2015
Reputation: 0

SantiagoUO.com

Post: #5
RE: Stop timer if user logout and continue if is online
I do similar thing, thanks mate.

[Image: mfqAZnj.png]
Discord: SantiagoUO
Skype:
criminaluo
10-05-2015 11:31 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)