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

Help / Support LEVEL HP /LM


Post New Thread Reply   
 
Thread Tools Display Modes
Sidix
Senior Member
Join Date: Feb 2011
Location: Limbo City
Old 06-18-2012 , 17:40   Re: LEVEL HP /LM
Reply With Quote #41

Find the line of the function "ltm_PreThink (id)"

and

Replace the "ltm_PreThink(id)" old for this:

PHP Code:
public ltm_PreThink(id)
{
    static 
iEntityiBodyszClassName[33], szPlayerName[33], iPlayerIDFloatfHealth// Creamos las variables
    
    
get_user_aimingidiEntityiBody350 // Obtenemos lo que esta apuntando el player
    
    
peviEntitypev_classnameszClassName32 // Obtenemos el nombre de la entidad
    
peviEntitypev_healthfHealth // Obtenemos la vida
    
    
if( equalszClassNameENT_CLASS_NAME ) ) // Si es igual el nombre de la entidad obtenida al nombre de los Lasers
    
{
        
iPlayerID peviEntityLASERMINE_OWNER // Igualamos "iPlayerID" al Owner de la Mina ( no se de que otra forma explicar esto )
        
get_user_nameiPlayerIDszPlayerName32 // Obtenemos el nombre del player duenio del laser
        
        
set_hudmessage(8502550.280.6906.012.0// Mostramos el mensaje...
        
show_hudmessage(id"Creador del laser: %s^nVida: %0.1f%%"szPlayerNamefHealth 100 get_pcvar_numg_LHEALTH ));
    }

__________________
[IMG]http://img839.**************/img839/1879/dmcdanteprofile.png[/IMG]
Sidix is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 06-19-2012 , 01:26   Re: LEVEL HP /LM
Reply With Quote #42

Quote:
Originally Posted by Sidix View Post
Find the line of the function "ltm_PreThink (id)"

and

Replace the "ltm_PreThink(id)" old for this:

PHP Code:
public ltm_PreThink(id)
{
    static 
iEntityiBodyszClassName[33], szPlayerName[33], iPlayerIDFloatfHealth// Creamos las variables
    
    
get_user_aimingidiEntityiBody350 // Obtenemos lo que esta apuntando el player
    
    
peviEntitypev_classnameszClassName32 // Obtenemos el nombre de la entidad
    
peviEntitypev_healthfHealth // Obtenemos la vida
    
    
if( equalszClassNameENT_CLASS_NAME ) ) // Si es igual el nombre de la entidad obtenida al nombre de los Lasers
    
{
        
iPlayerID peviEntityLASERMINE_OWNER // Igualamos "iPlayerID" al Owner de la Mina ( no se de que otra forma explicar esto )
        
get_user_nameiPlayerIDszPlayerName32 // Obtenemos el nombre del player duenio del laser
        
        
set_hudmessage(8502550.280.6906.012.0// Mostramos el mensaje...
        
show_hudmessage(id"Creador del laser: %s^nVida: %0.1f%%"szPlayerNamefHealth 100 get_pcvar_numg_LHEALTH ));
    }

Hudmessage not dissapearing when not aiming at lasermine.
__________________
naSTR is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 06-19-2012 , 03:11   Re: LEVEL HP /LM
Reply With Quote #43

Change HUD message time...
gogicaa is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 06-19-2012 , 05:07   Re: LEVEL HP /LM
Reply With Quote #44

Which one is time

Code:
set_hudmessage(85, 0, 255, 0.28, 0.69, 0, 6.0, 12.0)
__________________
naSTR is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 06-19-2012 , 07:24   Re: LEVEL HP /LM
Reply With Quote #45

last one.
gogicaa is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 06-21-2012 , 14:55   Re: LEVEL HP /LM
Reply With Quote #46

I will explain what you should do.

Store in 3 diferent variables the index for the lasermine , and later , get the pev_health from that variables , and you're done.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
mountain
Member
Join Date: Jun 2012
Old 06-22-2012 , 02:56   Re: LEVEL HP /LM
Reply With Quote #47

jaja ;p
Lucas, it is not so easy ;p
mountain is offline
KillerMasa
Senior Member
Join Date: May 2012
Old 06-23-2012 , 17:37   Re: LEVEL HP /LM
Reply With Quote #48

Quote:
Originally Posted by Sidix View Post
Find the line of the function "ltm_PreThink (id)"

and

Replace the "ltm_PreThink(id)" old for this:

PHP Code:
public ltm_PreThink(id)
{
    static 
iEntityiBodyszClassName[33], szPlayerName[33], iPlayerIDFloatfHealth// Creamos las variables
 
    
get_user_aimingidiEntityiBody350 // Obtenemos lo que esta apuntando el player
 
    
peviEntitypev_classnameszClassName32 // Obtenemos el nombre de la entidad
    
peviEntitypev_healthfHealth // Obtenemos la vida
 
    
if( equalszClassNameENT_CLASS_NAME ) ) // Si es igual el nombre de la entidad obtenida al nombre de los Lasers
    
{
        
iPlayerID peviEntityLASERMINE_OWNER // Igualamos "iPlayerID" al Owner de la Mina ( no se de que otra forma explicar esto )
        
get_user_nameiPlayerIDszPlayerName32 // Obtenemos el nombre del player duenio del laser
 
        
set_hudmessage(8502550.280.6906.012.0// Mostramos el mensaje...
        
show_hudmessage(id"Creador del laser: %s^nVida: %0.1f%%"szPlayerNamefHealth 100 get_pcvar_numg_LHEALTH ));
    }

Thanks for this code, but i have one question. how can make admins only who can see lasermine hp/owner?
KillerMasa is offline
BlackRaven
Member
Join Date: Jun 2012
Location: Latvia
Old 06-23-2012 , 19:56   Re: LEVEL HP /LM
Reply With Quote #49

Quote:
Originally Posted by KillerMasa View Post
Thanks for this code, but i have one question. how can make admins only who can see lasermine hp/owner?
Add this:

PHP Code:
    if(!cmd_access(id,level,cid,2)) 

Last edited by BlackRaven; 06-27-2012 at 12:31.
BlackRaven is offline
mountain
Member
Join Date: Jun 2012
Old 06-24-2012 , 03:11   Re: LEVEL HP /LM
Reply With Quote #50

this plugin shows IN & not HP...
hp - very very good
& - very bad...
mountain 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 17:19.


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