Raised This Month: $ Target: $400
 0% 

get health from classname?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Cigojlo
Senior Member
Join Date: May 2013
Location: Serbia / Belgrade
Old 09-06-2013 , 05:38   get health from classname?
Reply With Quote #1

I want to get health from lasermine plugin but idk how pls help here is part when owner of plugin set health of lasermine in this line set_user_health(i_Ent,get_pcvar_num(g_LHEALTH )); and i want to get_user_health from lasermine to edit this plugin, pls someone?
PHP Code:
public Spawnid )
{
    
id -= TASK_PLANT
    
// motor
    
new i_Ent engfunc(EngFunc_CreateNamedEntity,g_EntMine);
    if(!
i_Ent)
    {
        
client_print(id,print_chat,"[ZP] Can't Create Entity");
        return 
PLUGIN_HANDLED_MAIN;
    }
    
set_pev(i_Ent,pev_classname,ENT_CLASS_NAME);

    
engfunc(EngFunc_SetModel,i_Ent,ENT_MODELS);

    
set_pev(i_Ent,pev_solid,SOLID_NOT);
    
set_pev(i_Ent,pev_movetype,MOVETYPE_FLY);

    
set_pev(i_Ent,pev_frame,0);
    
set_pev(i_Ent,pev_body,3);
    
set_pev(i_Ent,pev_sequence,TRIPMINE_WORLD);
    
set_pev(i_Ent,pev_framerate,0);
    
    
set_pev(i_Ent,pev_takedamage,DAMAGE_YES);
    
    
set_pev(i_Ent,pev_dmg,100.0);
    
set_user_health(i_Ent,get_pcvar_num(g_LHEALTH)); 
__________________
Quote:
Originally Posted by ghinghis View Post
the fuking TOP.SMA cannot be compiled moron !!!!!

Last edited by Cigojlo; 09-06-2013 at 05:39.
Cigojlo is offline
 



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 19:08.


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