Blue Jem Posted December 8, 2013 Group: Members Topic Count: 151 Topics Per Day: 0.04 Content Count: 393 Reputation: 3 Joined: 09/16/13 Last Seen: June 4, 2014 Share Posted December 8, 2013 if the player or character is AFK for 50mins auto kick or logout. Quote Link to comment Share on other sites More sharing options...
Patskie Posted December 8, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 13 hours ago Share Posted December 8, 2013 if ( checkidle() >= 3000 ) atcommand "@kick " +strcharinfo(0); end; Reference : doc/script_commands.txt *checkidle({"<Player Name>"}) Returns the time, in seconds, that the specified player has been idle. Name is optional, and defaults to the attached player if omitted. Quote Link to comment Share on other sites More sharing options...
Blue Jem Posted December 9, 2013 Group: Members Topic Count: 151 Topics Per Day: 0.04 Content Count: 393 Reputation: 3 Joined: 09/16/13 Last Seen: June 4, 2014 Author Share Posted December 9, 2013 this script --- idle ?? stand for? Quote Link to comment Share on other sites More sharing options...
Patskie Posted December 9, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 13 hours ago Share Posted December 9, 2013 being idle means being not active for some time Quote Link to comment Share on other sites More sharing options...
Blue Jem Posted December 9, 2013 Group: Members Topic Count: 151 Topics Per Day: 0.04 Content Count: 393 Reputation: 3 Joined: 09/16/13 Last Seen: June 4, 2014 Author Share Posted December 9, 2013 this 3000 stand for how long in mins or hours? Quote Link to comment Share on other sites More sharing options...
Patskie Posted December 9, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 13 hours ago Share Posted December 9, 2013 checkidle command returns time, in seconds. 3000 seconds = 50 minutes as what you have requested in this topic. Quote Link to comment Share on other sites More sharing options...
Blue Jem Posted December 9, 2013 Group: Members Topic Count: 151 Topics Per Day: 0.04 Content Count: 393 Reputation: 3 Joined: 09/16/13 Last Seen: June 4, 2014 Author Share Posted December 9, 2013 (edited) - script -1,{ if ( checkidle() >= 3000 ) atcommand "@kick " +strcharinfo(0); end; } like this? Edited December 9, 2013 by Blue Jem Quote Link to comment Share on other sites More sharing options...
Patskie Posted December 9, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 13 hours ago Share Posted December 9, 2013 You need to attach the player when using checkidle() command with no arguments Quote Link to comment Share on other sites More sharing options...
Blue Jem Posted December 9, 2013 Group: Members Topic Count: 151 Topics Per Day: 0.04 Content Count: 393 Reputation: 3 Joined: 09/16/13 Last Seen: June 4, 2014 Author Share Posted December 9, 2013 how? Quote Link to comment Share on other sites More sharing options...
Question
Blue Jem
if the player or character is AFK for 50mins auto kick or logout.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.