Raised This Month: $ Target: $400
 0% 

[HELP] How to Set entity of targetname?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Hibiki_XD
Member
Join Date: Jan 2008
Old 04-05-2009 , 06:57   [HELP] How to Set entity of targetname?
Reply With Quote #1

... 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 ..
__________________
This is me Server Hide-n-Seek
[OFFLINE]
Hibiki_XD is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode