CAC_GetHardwareID

Description

Gets player hardware ID, which is unique.

Definition

native CAC_GetHardwareID(player_id, hardware_id[], max_size = sizeof(hardware_id));

Parameters

Return values

Example usage

// example requires: zcmd-style command processor
COMMAND:my_hwid(player_id, params[])
{
    new hwid[CAC__MAX_HARDWARE_ID], buf[32 + CAC__MAX_HARDWARE_ID];
    CAC_GetHardwareID(player_id, hwid, sizeof(hwid));
    format(buf, sizeof(buf), "My hardware ID is: %s", hwid);
    SendClientMessage(player_id, -1, buf);
    return 1;
}

Remarks