Jump to content
  • 0

Autokick


letstry

Question


  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

Requesting a NPC that will autokick all players(except GM) every 3 seconds when Activated..

Like


- script kicker -1,{
announce "Disconnection in 3",0;
sleep2 1000;
announce "2",0;
sleep2 1000;
announce "1",0;
sleep2 1000;
atcommand kickall";
sleep2 3000;
atcommand kickall";

and blabla Lol I dont know how to xD

Thank you in advance

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Use an infinite loop,

 
while(1) { <do this>; sleep 3000; } end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

Use an infinite loop,

while(1) { <do this>; sleep 3000; } end;

Could you please provide me the full script sir Euphy? Thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

UPDATE `login` SET state = 4 where group_id = 0 ;

and use gm command @kickall

the normal player cant login again until update the sate field to 0

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

Bump?

Bump

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,181,5 script Sample 757,{
if( getgmlevel() < 90 ) end;
message strcharinfo(0),( ( !.Kick )?"":"DE-" )+"ACTIVATED";
set .Kick,(( .Kick )?0:1 );
awake strnpcinfo(0);
while( .Kick ){
if( getusers(1) > 1 ){
 atcommand "@kickall";
 npctalk "Kicked "+( getusers(1) - 1 )+" Users";
}
sleep2 3000;
}
end;
}

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...