letstry Posted July 23, 2012 Posted July 23, 2012 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 Quote
Euphy Posted July 24, 2012 Posted July 24, 2012 Use an infinite loop, while(1) { <do this>; sleep 3000; } end; Quote
letstry Posted July 24, 2012 Author Posted July 24, 2012 Use an infinite loop, while(1) { <do this>; sleep 3000; } end; Could you please provide me the full script sir Euphy? Thanks Quote
QQfoolsorellina Posted July 24, 2012 Posted July 24, 2012 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 Quote
Emistry Posted July 30, 2012 Posted July 30, 2012 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; } Quote
Question
letstry
Requesting a NPC that will autokick all players(except GM) every 3 seconds when Activated..
Like
and blabla Lol I dont know how to xD
Thank you in advance
5 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.