Raised This Month: $ Target: $400
 0% 

REQ l4d2 self help need help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eziosid
Senior Member
Join Date: Sep 2017
Old 01-04-2018 , 03:40   REQ l4d2 self help need help
Reply With Quote #1

i just need when player use medkit give him 50hp main heath this is original
PHP Code:
ReviveClientWithKid(client)
{
 
    new 
propincapcounter FindSendPropInfo("CTerrorPlayer""m_currentReviveCount");
 
        new 
userflags GetUserFlagBits(client);
        
SetUserFlagBits(clientADMFLAG_ROOT);
        new 
iflags=GetCommandFlags("give");
        
SetCommandFlags("give"iflags & ~FCVAR_CHEAT);
        
FakeClientCommand(client,"give health");
        
SetCommandFlags("give"iflags);
        
SetUserFlagBits(clientuserflags);
            
        
SetEntData(clientpropincapcounter01);
            
        new 
Handle:revivehealth FindConVar("first_aid_heal_percent"); 
        new 
temphpoffset FindSendPropOffs("CTerrorPlayer","m_healthBuffer");
        
SetEntDataFloat(clienttemphpoffsetGetConVarFloat(revivehealth)*100.0true);
        
SetEntityHealth(client1);

and this one is edited

PHP Code:
ReviveClientWithKid(client)
{
 
    new 
propincapcounter FindSendPropInfo("CTerrorPlayer""m_currentReviveCount");
 
        new 
userflags GetUserFlagBits(client);
        
SetUserFlagBits(clientADMFLAG_ROOT);
        new 
iflags=GetCommandFlags("give");
        
SetCommandFlags("give"iflags & ~FCVAR_CHEAT);
        
FakeClientCommand(client,"give health");
        
SetCommandFlags("give"iflags);
        
SetUserFlagBits(clientuserflags);
            
        
SetEntData(clientpropincapcounter01);
            
        new 
Handle:revivehealth FindConVar("first_aid_heal_percent"); 
        new 
temphpoffset FindSendPropOffs("CTerrorPlayer","m_healthBuffer");
        
SetEntDataFloat(clientmainhpoffsetGetConVarFloat(revivehealth)*100.0true);
        
SetEntityHealth(client1);

what is the main health value ? "temphpoffset" "mainhpoffset"

sorce code is also attached tnx to "Pan Xiaohai" for plugin

Last edited by eziosid; 01-11-2018 at 09:40. Reason: fixed
eziosid is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 01-04-2018 , 19:12   Re: REQ l4d2 self help need help
Reply With Quote #2

I have a forked version of this plugin which works way better than the old version. I'm also planning to have the bots able to help themselves too.
cravenge is offline
eziosid
Senior Member
Join Date: Sep 2017
Old 01-05-2018 , 02:03   Re: REQ l4d2 self help need help
Reply With Quote #3

i tested your version but meele weapons replace dual pistol in this its working fine also in this version bot will help himself its include..! only need main heath value of 50hp ..! its give 80hp temp heath when use medkit .. i tested just need main help code ...

Last edited by eziosid; 01-05-2018 at 02:05.
eziosid 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 03:43.


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