Furious^ONE! Posted June 27, 2016 Share Posted June 27, 2016 Hello, i want made a script for no admin kick for high ping, how to made this script pls ?, Link to comment
Dimos7 Posted June 27, 2016 Share Posted June 27, 2016 setTimer( function() for _, v in ipairs(getElementsByType("player")) do if getPlayerPing(v) >= 300 then kickPlayer(v, "Ping over 300") outputChatBox(getPlayerName(v) " has been kicked by console for high ping.", root, 255, 0 ,0) end end end, 5000, 0) Link to comment
LabiVila Posted June 29, 2016 Share Posted June 29, 2016 setTimer ( function () for _,v in ipairs (getElementsByType ("player")) do if (getPlayerPing > 300) then if (isGuestAccount (v) == false) then --you can as well delete this line, it may output some errors if you do that if (isObjectInACLGroup ("user."..v, aclGetGroup ("admin")) then --your group in ACL must be called 'admin' return else kickPlayer (v, "Ping over 300 and you are not in admin group") end end end end end, 5000, 0 ) Link to comment
Captain Cody Posted June 29, 2016 Share Posted June 29, 2016 @LabiVila, I belive he was just asking for, no admins present. Link to comment
_DrXenon Posted June 30, 2016 Share Posted June 30, 2016 You mean some kind of a vote? Like players can vote to kick a certain player when he has a high ping? Otherwise, you probably need LabiVila's or Dimos7's code. Link to comment
LabiVila Posted July 1, 2016 Share Posted July 1, 2016 Lol it's quite hard to understand that English, I thought he wanted to kick everyone who has > 300 ping but Admins, however Link to comment
aka Blue Posted July 1, 2016 Share Posted July 1, 2016 Hello, i want made a script for no admin kick for high ping, how to made this script pls ?, Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now