Raised This Month: $ Target: $400
 0% 

Point at Enemy and get Infos, like HP etc.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stephen
Senior Member
Join Date: Aug 2004
Old 03-31-2006 , 10:40   Point at Enemy and get Infos, like HP etc.
Reply With Quote #1

Hi.
My question is, is it possible to point the crosshair at an enemy and have on the right side of the Crosshair then some Information standing like HP/Speed/etc.. whatever floats the boat.

And how would that be done if its possible ?
Also that some offsets are beeing read and displayed on the Information.

Hope you know what im talking about.
__________________
www.corona-bytes.net (ECX = ESF Addon)
Stephen is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-31-2006 , 10:48  
Reply With Quote #2

I think this is how you'd do it:
Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {     register_plugin("wootsa" , "0.1" , "v3x");     register_forward(FM_TraceLine , "forward_traceline" , 1); } public forward_traceline(Float:v1[3] , Float:v2[3] , noMonsters , id) {     if(!is_user_alive(id))         return FMRES_IGNORED;     new hitid = get_tr(TR_pHit);     if(!is_user_alive(hitid))         return FMRES_IGNORED;     new hp = pev(hitid , pev_health);     new speed = pev(hitid , pev_speed);     // set_hudmessage( .. );     new message[101];     format(message , 100 , "HP: %d^nSpeed: %d" , hp , speed);     show_hudmessage(id , message);     return FMRES_IGNORED; }
You can use other modules to retrieve other information about the player if you need to.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Stephen
Senior Member
Join Date: Aug 2004
Old 03-31-2006 , 12:10  
Reply With Quote #3

Thx i gonna try it right away now.

I tried it with an Bot in ESF but it didnt show me anything
or its not working for ESF yet ???
__________________
www.corona-bytes.net (ECX = ESF Addon)
Stephen 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 16:43.


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