• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

./ip - Crazy

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I wanted a script that when you talk /ip
it shows the ip of all players online

rep+ :thumbup:
 
not tested

LUA:
function onSay(cid, words, param, channel)

local players = getPlayersOnline()
local text = "Player - Ip"

	for _, pid in ipairs(players) do
		text = text .. "\n" .. getCreatureName(pid) .. " - " ..  doConvertIntegerToIp(getPlayerIp(pid))
	end
	doShowTextDialog(cid, 2195, text)
	return true
end
 
Back
Top