Raised This Month: $51 Target: $400
 12% 

Show entity's health when aiming.


Post New Thread Reply   
 
Thread Tools Display Modes
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 03-30-2012 , 07:04   Re: Show entity's health when aiming.
Reply With Quote #11

I don't use any code. I just explained my method to the thread starter.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-30-2012 , 07:36   Re: Show entity's health when aiming.
Reply With Quote #12

and your method is wrong
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
tribadist
Junior Member
Join Date: Dec 2008
Location: WAN
Old 03-30-2012 , 08:26   Re: Show entity's health when aiming.
Reply With Quote #13

Quote:
Originally Posted by tuty View Post
dude, using a task for such a think isnt a good idea :/

my code works fine if you use it wisely
tuty, so did I use your code right? I mean - just insterting it and registering the forward should do the thing? If so, any ideas why would it restart the server?

Also, do you think claudiuhks's code wont work? (hadn't time yet to compile and test it).

Cheers.
tribadist is offline
Send a message via ICQ to tribadist Send a message via MSN to tribadist
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-30-2012 , 08:45   Re: Show entity's health when aiming.
Reply With Quote #14

lol just give me the damn lasermine plugin to edit
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
tribadist
Junior Member
Join Date: Dec 2008
Location: WAN
Old 03-30-2012 , 09:16   Re: Show entity's health when aiming.
Reply With Quote #15

Here you go: original plugin
I've also attached the .sma from the link above for your convenience
Attached Files
File Type: sma Get Plugin or Get Source (lasermine_023.sma - 244 views - 39.0 KB)
tribadist is offline
Send a message via ICQ to tribadist Send a message via MSN to tribadist
tribadist
Junior Member
Join Date: Dec 2008
Location: WAN
Old 04-02-2012 , 03:36   Re: Show entity's health when aiming.
Reply With Quote #16

Quote:
Originally Posted by claudiuhks View Post
PHP Code:
#include < amxmodx >
#include < fakemeta >

public client_putinserveriClient )
{
  
set_task1.0"Task_CheckAiming"iClient 3389__"b" );
}

public 
client_disconnectiClient )
{
  
remove_taskiClient 3389 );
}

public 
Task_CheckAimingiTaskIndex )
{
  static 
iClient;
  
iClient iTaskIndex 3389;

  if( 
is_user_aliveiClient ) )
  {
    static 
iEntityiDummycClassname32 ];
    
get_user_aimingiClientiEntityiDummy9999 );

    if( 
pev_validiEntity ) )
    {
      
peviEntitypev_classnamecClassname31 );

      if( 
equalcClassname"YOUR_CLASS_NAME" ) )
      {
        
// YOUR_PRINT_FUNCTION( iClient, "Health: %i", pev( iEntity, pev_health ) );
      
}
    }
  }

Set print function as: client_print ( iClient, print_chat, "Health: %i", pev( iEntity, pev_health ))

No effect..
tribadist is offline
Send a message via ICQ to tribadist Send a message via MSN to tribadist
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-02-2012 , 05:50   Re: Show entity's health when aiming.
Reply With Quote #17

It's hard enough to take the player's aiming entity. About the picture you shown us, as an URL link, I don't think that plugin you are reffering at is taking the player's aiming entity.

I made this plugin for a Zombie Plague server, that's right, but this HUD message appears while the player has one or two mines planted. And disappears when these mines get destructed or the end round is comming.

Last edited by claudiuhks; 04-02-2012 at 05:52.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
claudiuhks_PizdaX
BANNED
Join Date: Mar 2012
Location: |+|
Old 04-02-2012 , 08:09   Re: Show entity's health when aiming.
Reply With Quote #18

tuty ce mortii mati tot te bagi ca esti habarnist duten pula mea si dai la laba
claudiuhks_PizdaX is offline
tribadist
Junior Member
Join Date: Dec 2008
Location: WAN
Old 04-02-2012 , 09:23   Re: Show entity's health when aiming.
Reply With Quote #19

Quote:
Originally Posted by claudiuhks View Post
It's hard enough to take the player's aiming entity. About the picture you shown us, as an URL link, I don't think that plugin you are reffering at is taking the player's aiming entity.

I made this plugin for a Zombie Plague server, that's right, but this HUD message appears while the player has one or two mines planted. And disappears when these mines get destructed or the end round is comming.
I know. The plugin on the URL takes lasermine's health when you got one or two of them planted. It should be easier, but still I coulnd't implement this idea too. Is that plugin private? I'm asking because I couldn't find anything like that in public access.
tribadist is offline
Send a message via ICQ to tribadist Send a message via MSN to tribadist
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-03-2012 , 15:56   Re: Show entity's health when aiming.
Reply With Quote #20

Quote:
Originally Posted by claudiuhks_PizdaX View Post
tuty ce mortii mati tot te bagi ca esti habarnist duten pula mea si dai la laba
It would be great if you'll change your name or it will be changed by an administrator.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
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 06:45.


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