Skip to content

GetPlayersByHwid

The players online on one PC - a banned PC’s other names.

Every player online whose PC shares at least minMatches parts with hwid (see CompareHwid), in join order. Ban a player and their other names on the server go too; or warn an admin when two players play from one PC.

GetPlayersByHwid(hwid [, minMatches])
Parameter Type
hwid string an hwid
minMatches number the parts that must be shared, 1-4; 2 when left out (optional)

table - a list of pids; empty for a malformed hwid

-- the ban takes every name on that PC with it
for _, other in ipairs(GetPlayersByHwid(GetPlayerHwid(pid))) do Kick(other, "Banned.") end

GetPlayerHwid · CompareHwid · GetPlayerByUid · the Players group of the index