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.
Syntax
Section titled “Syntax”CompareHwid(a, b)| Parameter | Type | |
|---|---|---|
a |
string | an hwid |
b |
string | another hwid |
Returns
Section titled “Returns”number - the shared parts, 0-4
Example
Section titled “Example”if CompareHwid(GetPlayerHwid(pid), saved_hwid) >= 2 then Kick(pid, "Banned.") endSee also
Section titled “See also”GetPlayerHwid · GetPlayersByHwid · the Players group of the index
