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.
Syntax
Section titled “Syntax”GetPlayersByHwid(hwid [, minMatches])| Parameter | Type | |
|---|---|---|
hwid |
string | an hwid |
minMatches |
number | the parts that must be shared, 1-4; 2 when left out (optional) |
Returns
Section titled “Returns”table - a list of pids; empty for a malformed hwid
Example
Section titled “Example”-- the ban takes every name on that PC with itfor _, other in ipairs(GetPlayersByHwid(GetPlayerHwid(pid))) do Kick(other, "Banned.") endSee also
Section titled “See also”GetPlayerHwid · CompareHwid · GetPlayerByUid · the Players group of the index
