Raised This Month: $ Target: $400
 0% 

Targetinfo Hns


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mattiiias93
Member
Join Date: Mar 2012
Old 07-13-2012 , 07:58   Targetinfo Hns
Reply With Quote #1

Why didn't Enemy: Name work? When i play i can see friend but no enemy hud. Can someone fix it?


new target, body;
get_user_aiming(plr, target, body, 9999);

if( 0 < target <= g_MaxPlayers && g_bAlive[target] )
{
new CsTeams:targetTeam = cs_get_user_team(target);
if( semiclip == 2 || targetTeam == team )
{
new sName[32];
get_user_name(target, sName, 31);

new sMessage[64];
if( targetTeam == team )
{
formatex(sMessage, 63, "Friend: %s Health: %i", sName, get_user_health(target));
}
else
{
formatex(sMessage, 63, "Enemy: %s", sName, get_user_health(target));
}

if( targetTeam == CS_TEAM_CT )
{
set_hudmessage(0, 63, 127, -1.0, -1.0, 0, 0.0, 0.1, 0.0, 0.0, -1);
}
else if( targetTeam == CS_TEAM_T )
{
set_hudmessage(127, 0, 0, -1.0, -1.0, 0, 0.0, 0.1, 0.0, 0.0, -1);
}

show_hudmessage(plr, "%s", sMessage);
}
}
}
}
mattiiias93 is offline
MokeN
Senior Member
Join Date: Jan 2012
Location: Vaasa, Finland
Old 07-17-2012 , 14:23   Re: Targetinfo Hns
Reply With Quote #2

Use PHP wraps;)
__________________
Private Works:
- Achievements, HNS & JB Menus, HNS & JB Shops

mY BlockMaker - mY Steam - mY Game Menu
MokeN is offline
Send a message via Skype™ to MokeN
Aooka
Veteran Member
Join Date: Aug 2011
Location: Villeurbanne
Old 07-17-2012 , 14:27   Re: Targetinfo Hns
Reply With Quote #3

get_user_aiming(plr, target, body, 9999);
9999 = Why do you choose this value ? lol

Take 128 it's better.
__________________
Pawn ? Useless
Aooka is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-17-2012 , 14:45   Re: Targetinfo Hns
Reply With Quote #4

Quote:
Originally Posted by Aooka View Post
get_user_aiming(plr, target, body, 9999);
9999 = Why do you choose this value ? lol

Take 128 it's better.
Do you even know what it does?
That value is the largest distance that get_user_aiming() will look.
128 is about 2-3 people away from you.
9999 works here because you can get wherever you are aiming in the map.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Aooka
Veteran Member
Join Date: Aug 2011
Location: Villeurbanne
Old 07-17-2012 , 14:48   Re: Targetinfo Hns
Reply With Quote #5

Yes i know it, but I did not know he needed as much ... "space"
__________________
Pawn ? Useless
Aooka is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-17-2012 , 14:49   Re: Targetinfo Hns
Reply With Quote #6

Quote:
Originally Posted by Aooka View Post
Yes i know it, but I did not know he needed as much ... "space"
Just curious, why is 128 better than 9999?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Aooka
Veteran Member
Join Date: Aug 2011
Location: Villeurbanne
Old 07-17-2012 , 14:52   Re: Targetinfo Hns
Reply With Quote #7

Not better you are right ... I misspoke
__________________
Pawn ? Useless
Aooka is offline
mattiiias93
Member
Join Date: Mar 2012
Old 07-22-2012 , 06:48   Re: Targetinfo Hns
Reply With Quote #8

Can you fix it aooka? or exolent please
mattiiias93 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-22-2012 , 08:40   Re: Targetinfo Hns
Reply With Quote #9

Quote:
Originally Posted by mattiiias93 View Post
Can you fix it aooka? or exolent please
Don't expect anything from aooka, he knows nothing and he is just confusing people.
aooka, last warning from me before i request a ban.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 07-22-2012 , 22:38   Re: Targetinfo Hns
Reply With Quote #10

Quote:
Originally Posted by Exolent[jNr] View Post
Do you even know what it does?
That value is the largest distance that get_user_aiming() will look.
128 is about 2-3 people away from you.
9999 works here because you can get wherever you are aiming in the map.
curious about this... if you leave the param blank

PHP Code:
new Float:flAimingDistance get_user_aiming(idtargetbody); 
That seem to not restrict the distance. does that do the same as setting it to 9999? (In theory)
Doc-Holiday is offline
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 15:02.


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