Skip to content

CompareHwid

How many parts two PCs share - 0 to 4.

Counts the parts of two hwids that both have and that are equal (a part of zeros never counts). 4 is the same PC unchanged; 2 or 3 the same PC with a part changed (a new disk, a new Windows); 1 can be chance (two PCs from one shop image share Windows’ id). Case and spaces around the strings do not matter; a malformed or empty string shares nothing.

CompareHwid(a, b)
Parameter Type
a string an hwid
b string another hwid

number - the shared parts, 0-4

if CompareHwid(GetPlayerHwid(pid), saved_hwid) >= 2 then Kick(pid, "Banned.") end

GetPlayerHwid · GetPlayersByHwid · the Players group of the index