Jump to content
  • 0

Kick Player


maynard

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

player will be kick on specific time 12:00 and they cant log in. Then on 16:00 they can log in again. the neme will be in a array. John, Joe, Joel,,,,,,,,and many more.

or at 12:00 npc will kick then ban the players from log in for 4 hours. I will put the names of player.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   5
  • Joined:  12/12/11
  • Last Seen:  

try this?

- script kick -1,{
OnInit:
setarray .name$,"John","Joe","Joel";
end;

OnPCLoginEvent:
if( ( gettime(3) >= 12 && gettime(3) < 16 ) )
{
for( set .@i,0; .@i < getarraysize( .name$ ) - 1; set .@i,.@i + 1 )
if( strcharinfo(0) == .name$[.@i] ) atcommand "@kick " + strcharinfo(0);
}
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

Its not working for me. There's no error in my map serv but it doesn't kick the player.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   5
  • Joined:  12/12/11
  • Last Seen:  

your time 12-16(for kick players)?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

yes its not working for me, I advanced the time to test if it will kick the player.

Link to comment
Share on other sites

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.

×
×
  • Create New...