Raised This Month: $ Target: $400
 0% 

[HELP] TARGET NAME!! t(T.Tt)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hibiki_XD
Member
Join Date: Jan 2008
Old 04-02-2009 , 20:32   [HELP] TARGET NAME!! t(T.Tt)
Reply With Quote #1

:p... Hi All Allied Modders People..., i'm here because i need help with a code...., i'm trying to set targetname for my blockmaker example...

i'm doing this...

new szName[32];
pev(id, 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(id, "Block Type: %s^Creator: %s", gszBlockNames[blockType], szName);

but when i'm checking in my server.. all block say... "Unknown..." plz i need help to set the block own creator name...
example if my friend have name "Puriffict"
Should say:
Block Type: Bunnyhop - Creator: Puriffict

in own his block.....
but i'm using other code like this...

new szName[32]
get_user_name(id, szName, 31);

but.... with it only appear all the block with my name not of other.... ><.. can someone help me plz?
__________________
This is me Server Hide-n-Seek
[OFFLINE]
Hibiki_XD is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-02-2009 , 20:44   Re: [HELP] TARGET NAME!! t(T.Tt)
Reply With Quote #2

Quote:
Originally Posted by Hibiki_XD View Post
pev(id, pev_targetname, szName, 31);
Shouldn't you be getting the entity's targetname and not the player's ?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Hibiki_XD
Member
Join Date: Jan 2008
Old 04-02-2009 , 21:16   Re: [HELP] TARGET NAME!! t(T.Tt)
Reply With Quote #3

hm... idk how i just forgot it... idk really cna u help me? u are so Awesome.. !! i want be as u... a MASTER AMX SCRIPTER..., and i really dont remember how to put the entity...
like this?
new szName[32] = entity_set_int(ent, EV_????); after it i forgot....
and... i really dont remmeber anything about it can u help me?
__________________
This is me Server Hide-n-Seek
[OFFLINE]
Hibiki_XD is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-02-2009 , 22:47   Re: [HELP] TARGET NAME!! t(T.Tt)
Reply With Quote #4

Umm.. no. I do not help others with creating custom blockmakers. You must do it yourself, or have someone else help.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Hibiki_XD
Member
Join Date: Jan 2008
Old 04-03-2009 , 07:11   Re: [HELP] TARGET NAME!! t(T.Tt)
Reply With Quote #5

... just this is my first time.. editing the blockmaker.. and... .. i'm really good XD..... i only need the ... targetname XD i have all already XD
__________________
This is me Server Hide-n-Seek
[OFFLINE]
Hibiki_XD is offline
Old 04-03-2009, 18:39
Hibiki_XD
This message has been deleted by Hibiki_XD.
Old 04-23-2009, 12:02
38914774
This message has been deleted by Exolent[jNr]. Reason: Nothing to do with the topic.
Reply



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:19.


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