Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. function hasPlayerHighping ( )
  2. for i, player in ipairs(getElementsByType("player")) do
  3. if getPlayerPing(player) >= 400 then
  4. if getElementData(player, "HighPing") == 0 then
  5. outputChatBox("#C8C800[INFO]:#FFFFFF Du hast #FF0000High-Ping! #FFFFFFSenke ihn, oder du wirst #FF0000gekickt!", player, 0, 0, 0, true)
  6. setElementData(player, "HighPing", 1)
  7. elseif getElementData(player, "HighPing") == 1 then
  8. kickPlayer(player, "HighPing-System", "HighPing")
  9. outputChatBox("#FF0000[KICK]: #FFFFFF"..getPlayerName(player)" wurde wegen #FF0000HighPing #FFFFFFgekickt!", player, 0, 0, 0, true)
  10. end
  11. end
  12. end
  13. end
  14. setTimer(hasPlayerHighping, 5000, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement