potinho
Intermediate OT User
Hello everybody,
I want to find a player searching by ip, to help me to check some things in my server, but talkaction its not response a correct value. I search my ip and other players, result its empty, no errors in console. Follow talkaction:
using: /ip xxx.xxx.xxx.xxx
I want to find a player searching by ip, to help me to check some things in my server, but talkaction its not response a correct value. I search my ip and other players, result its empty, no errors in console. Follow talkaction:
Lua:
function onSay(cid, words, param, channel)
str = "Ip:\n\n"
for _, pid in ipairs(getPlayersOnline()) do
if getPlayerIp(pid) == param then
str = str .. getPlayerIp(pid) .. " - Nome do Player [(".. getPlayerName(pid) ..")] Level ["..getPlayerLevel(pid).."]\n"
end
end
doShowTextDialog(cid, 1397, str)
return true
end
using: /ip xxx.xxx.xxx.xxx