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
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-31-2006 , 10:48  
Reply With Quote #1

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
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