Results 1 to 3 of 3

Thread: Setting an auto logout time?

  1. #1
    Normal User
    Join Date
    Feb 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Setting an auto logout time?

    Can someone explain how to set a time to logout? If it's a hotkey, or something, can you please make it for me and tell me how to edit it?
    Any help appreciated..

  2. #2
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Here we go:
    Code:
    --[[ START ]]--
    	local LOGOUT_TIME = "10:00"
    	
    	--[[ do not edit below ]]--
    	
    	local LOGOUT_TIME = tosec(LOGOUT_TIME)
    	local CURRENT_TIME = tosec(time())
    	
    --[[ END ]]--
    
    if connected then
    	if CURRENT_TIME >= LOGOUT_TIME then
    		--ACTION--
    	end
    end
    Remember to change ACTION.

  3. #3
    Normal User
    Join Date
    Feb 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    hey, thanks raph. but what to you mean by change action? im new to ibot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •