1LoL1 Posted June 22, 2014 Posted June 22, 2014 Could someone make a ping kicker that's just not even notice it now at Kicks 200 ping? please
'LinKin Posted June 22, 2014 Posted June 22, 2014 Here's not a place to request scripts, you should give a look at the community resources
1LoL1 Posted June 22, 2014 Author Posted June 22, 2014 Here's not a place to request scripts,you should give a look at the community resources So there I find that the script Kicks now there are all those that warn .. but I do not want ..
Gtagasje Posted June 22, 2014 Posted June 22, 2014 On the wiki there is an example which should do what you want. https://wiki.multitheftauto.com/wiki/GetPlayerPing function kickPing() -- Creates a function called kickPing for i, player in ipairs(getElementsByType("player")) do -- Loop every player if (getPlayerPing(player) >= 500) then -- If their ping is over 500 kickPlayer(player, "Ping over 500!") -- Kick them end end end setTimer(kickPing, 5000, 0) -- Every 5 seconds, the kickPing function is called.
Moderators Citizen Posted June 22, 2014 Moderators Posted June 22, 2014 So there I find that the script Kicks now there are all those that warn .. but I do not want .. - Read the code - Try to understand the code - Modify the code - Test - Keep modifying untill it work. If all those steps fails, here is where you should start before creating your server: https://wiki.multitheftauto.com/wiki/Scr ... troduction
1LoL1 Posted June 22, 2014 Author Posted June 22, 2014 On the wiki there is an example which should do what you want.https://wiki.multitheftauto.com/wiki/GetPlayerPing function kickPing() -- Creates a function called kickPing for i, player in ipairs(getElementsByType("player")) do -- Loop every player if (getPlayerPing(player) >= 500) then -- If their ping is over 500 kickPlayer(player, "Ping over 500!") -- Kick them end end end setTimer(kickPing, 5000, 0) -- Every 5 seconds, the kickPing function is called. And to make it even typed into the chat? function kickPing() for i, player in ipairs(getElementsByType("player")) do if (getPlayerPing(player) >= 250) then kickPlayer(player, "Ping over 250!") outputChatBox("..getPlayerName.."" has been kicked for hight ping!") end end end setTimer(kickPing, 5000, 0)
TAPL Posted June 22, 2014 Posted June 22, 2014 outputChatBox(getPlayerName(player).." has been kicked for hight ping!") You may need to place it before kick the player to avoid error.
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