Okay, so i want this script to not show any sign of a GM multi-clienting.
I added if getPlayerAccess(pid) < 3 then but it still shows the normal character that the GM is Multiclienting with.
Example -
I want it to remove the GMs Normal Character from the list
I added if getPlayerAccess(pid) < 3 then but it still shows the normal character that the GM is Multiclienting with.
Example -
Code:
12:55 2 players with IP address ( 000000000 / 00.0.0.00 ):
12:55 GMs Normal Character (level: 11716 | target: 0)
I want it to remove the GMs Normal Character from the list
Lua:
function onSay(cid, words, param, channel)
local _ip = nil
if(param ~= nil) then
_ip = tonumber(param)
if(not _ip or _ip == 0) then
local revertIp = doRevertIp(param)
if(not revertIp) then
local tid = getPlayerByNameWildcard(param)
if(not tid) then
_ip = nil
else
_ip = getPlayerIp(tid)
end
else
_ip = doConvertIpToInteger(revertIp)
end
end
end
local ips = {}
local players = getPlayersOnline()
for i, pid in ipairs(players) do
local ip = getPlayerIp(pid)
if(not _ip or _ip == ip) then
if(ips[ip] == nil) then
ips[ip] = {pid}
else
table.insert(ips[ip], pid)
end
end
end
for ip, players in pairs(ips) do
if(#players > 1) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, #players .. " players with IP address ( " .. ip .. " / " .. doConvertIntegerToIp(ip) .. " ):")
for i, pid in pairs(players) do
if getPlayerAccess(pid) < 3 then
local target = getCreatureTarget(pid)
if(target ~= 0) then
target = getCreatureName(target)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " (level: " .. getPlayerLevel(pid) .. " | target: " .. target .. ")")
end
end
end
end
return TRUE
end
Last edited: