1
if string.find(txt,"ping(id)") then code
ping(id) replaced with playerping. his txt before say is this for example:
1
Idlers ping is ping(id) ms
1
Idlers ping is 273 ms
create me the script please
if string.find(txt,"ping(id)") then code
Idlers ping is ping(id) ms
Idlers ping is 273 ms
function idleTime() 	return tonumber(game("mp_idletime")) end function showPings() 	for _, id in pairs(player(0,"table")) do 		if (player(id,"idle") or 0) > idleTime() then 			msg( string.gsub("Idlers ping is ping(id)", "ping(id)", player(id,"ping"))) 		end 	end end
ping(id) ms ping is the best
Rian2 ping is ping(2)
Rian2 ping is 121