Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getPlayersWithSameIp() -- By MaXwEllDeN
- local groups = {}
- for _, cid in pairs(getPlayersOnline()) do
- local aux = {}
- table.insert(aux, cid)
- for _, uid in pairs(getPlayersOnline()) do
- if getPlayerIp(cid) == getPlayerIp(uid) and not isInArray(aux, uid) then
- table.insert(aux, uid)
- end
- end
- if #aux > 1 then
- table.insert(groups, aux)
- end
- end
- return groups
- end
Advertisement
Add Comment
Please, Sign In to add comment