Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hasPlayerHighping ( )
- for i, player in ipairs(getElementsByType("player")) do
- if getPlayerPing(player) >= 400 then
- if getElementData(player, "HighPing") == 0 then
- outputChatBox("#C8C800[INFO]:#FFFFFF Du hast #FF0000High-Ping! #FFFFFFSenke ihn, oder du wirst #FF0000gekickt!", player, 0, 0, 0, true)
- setElementData(player, "HighPing", 1)
- elseif getElementData(player, "HighPing") == 1 then
- kickPlayer(player, "HighPing-System", "HighPing")
- outputChatBox("#FF0000[KICK]: #FFFFFF"..getPlayerName(player)" wurde wegen #FF0000HighPing #FFFFFFgekickt!", player, 0, 0, 0, true)
- end
- end
- end
- end
- setTimer(hasPlayerHighping, 5000, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement