AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] TARGET NAME!! t(T.Tt) (https://forums.alliedmods.net/showthread.php?t=89150)

Hibiki_XD 04-02-2009 20:32

[HELP] TARGET NAME!! t(T.Tt)
 
: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?

Exolent[jNr] 04-02-2009 20:44

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

Originally Posted by Hibiki_XD (Post 795871)
pev(id, pev_targetname, szName, 31);

Shouldn't you be getting the entity's targetname and not the player's ?

Hibiki_XD 04-02-2009 21:16

Re: [HELP] TARGET NAME!! t(T.Tt)
 
hm... idk how i just forgot it... idk really cna u help me? u are so Awesome.. :P!! 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?

Exolent[jNr] 04-02-2009 22:47

Re: [HELP] TARGET NAME!! t(T.Tt)
 
Umm.. no. I do not help others with creating custom blockmakers. You must do it yourself, or have someone else help.

Hibiki_XD 04-03-2009 07:11

Re: [HELP] TARGET NAME!! t(T.Tt)
 
:P... just this is my first time.. editing the blockmaker.. and... :P.. i'm really good XD..... i only need the :P... targetname XD i have all already XD


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

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