
... hi all i'm here to ask how i can set the entity of targetname? ihave this
{
for (new i = 1; i <= 32; ++i)
{
if( !is_user_connected(i) )
{
continue;
}
new ent, body;
get_user_aiming(id, ent, body, 320);
if (isBlock(ent))
{
new blockType = entity_get_int(ent, EV_INT_body);
new szName[32];
new Names = entity_get_int(ent, EV_FS_TARGETNAME);
pev(ent, pev_targetname, szName, 31);
if( szName[0] == '^0' )
{
copy(szName, 31, "Unknown");
}
set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
show_hudmessage(i, "Block Type: %s^nCreator: %s", gszBlockNames[blockType], szName[Names]);
}
but it still not work

..
__________________