yes it is in client-side. but I'm trying on home server this script so i have 2 ping that's why i did it "ping > 1" but it should be 100
still not working.
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.