function highPing()
local ping = getPlayerPing(getLocalPlayer())
if (ping > 100) then
outputChatBox('#990033 ' .. getPlayerName(source) .. ' #ffffffhas high ping.', GetRootElement(), 250, 255, 250, true)
end
end
addCommandHandler("ping", highPing)
Whats wrong?
When ping higher than 100 I want it written on chat.