Jump to content
  • 0

Auto kick after 20 minutes


Question

Posted (edited)

Hi guys,

Just wanted to ask is there a script that allows once a player goes in. The timer will automatically start with 15 minutes duration.

Should the player not leave the map by 15 minutes, it'll automatically kick the player out.

Thanks!

Edited by ToiletMaster

4 answers to this question

Recommended Posts

Posted

there's a bug in this script where if the player has leave, and come in back, the timer will execute twice

if( select("Enter for 15 minutes.:Cancel") == 1 ){
deltimer strnpcinfo(0)+"::OnKick"; // <---- add this
addtimer ( 15 * 60000 ),strnpcinfo(0)+"::OnKick";
warp .map$,0,0;
}

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...