in WarZ.sln
AI_Player.CPP
search for:
replace for:#ifndef FINAL_BUILD
// draw player CustomerID/gamertag for admins
if(!NetworkLocal && gUserProfile.ProfileData.isDevAccount && Keyboard->IsPressed(kbsLeftAlt))
{
float dist = (gCam - GetPosition()).Length();
int a = int(R3D_MAX(1.0f - (dist / 300.0f), 0.1f)*255.0f);
r3dPoint3D scrCoord;
if(r3dProjectToScreen(GetPosition() + r3dPoint3D(0, 1.8f, 0), &scrCoord))
{
char plrUserName[64]; GetUserName(plrUserName);
Font_Editor->PrintF(scrCoord.x, scrCoord.y+12, r3dColor(255,255,255,a), "ID:%d", CustomerID);
Font_Editor->PrintF(scrCoord.x, scrCoord.y, r3dColor(255,255,255,a), "%s", plrUserName);
}
}
#endif
because I commented these lines? to enable the function, both in the studio and the client.//#ifndef FINAL_BUILD
// draw player CustomerID/gamertag for admins
if(!NetworkLocal && gUserProfile.ProfileData.isDevAccount && Keyboard->IsPressed(kbsLeftAlt))
{
float dist = (gCam - GetPosition()).Length();
int a = int(R3D_MAX(1.0f - (dist / 300.0f), 0.1f)*255.0f);
r3dPoint3D scrCoord;
if(r3dProjectToScreen(GetPosition() + r3dPoint3D(0, 1.8f, 0), &scrCoord))
{
char plrUserName[64]; GetUserName(plrUserName);
Font_Editor->PrintF(scrCoord.x, scrCoord.y+12, r3dColor(255,255,255,a), "ID:%d", CustomerID);
Font_Editor->PrintF(scrCoord.x, scrCoord.y, r3dColor(255,255,255,a), "%s", plrUserName);
}
}
//#endif
Remembering, if you use the source invasionmmo not use this tutorial, because this function is already activated.
You can view the nametag and the Customer ID by pressing ALT


Reply With Quote![[Tutorial] how to activate player CustomerID / namertag for admins](http://ragezone.com/hyper728.png)


