Using WarZ.sln
In SocketLayer.Cpp
Search:
Add below:
static const char* HWID( const char *HWID );
After, search:
void SocketLayer::Write( const SOCKET writeSocket, const char* data, const int length )
And add up:
PS: The code to get the HardwareID player is complete, so we have done 30% of the total. Still missing communicate with api and store in the database. Function for those who want to ban the player from the HardwareID and not the external IP.
Sorry my English.!
Credits: me!
In SocketLayer.Cpp
Search:
Code:
static const char* DomainNameToIP( const char *domainName );
Quote:
static const char* HWID( const char *HWID );
After, search:
Quote:
void SocketLayer::Write( const SOCKET writeSocket, const char* data, const int length )
Code:
static const char* HWID( const char *HWID )
{
HW_PROFILE_INFO hwProfileInfo;
if(GetCurrentHwProfile(&hwProfileInfo) != NULL){
HWID = hwProfileInfo.szHwProfileGuid; //Variable HWID assigns Profile Globally unique identifier
//printf("Hardware GUID: %s\n", HWID);
}else{
return 0;
}
getchar();
}
PS: The code to get the HardwareID player is complete, so we have done 30% of the total. Still missing communicate with api and store in the database. Function for those who want to ban the player from the HardwareID and not the external IP.
Sorry my English.!
Credits: me!