Raised This Month: $ Target: $400
 0% 

edit hook jump on players head by Connor


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-14-2019 , 16:13   Re: edit hook jump on players head by Connor
Reply With Quote #8

Quote:
Originally Posted by Meelo View Post
Hello, i have this simple plugin from Connor's last post:
https://forums.alliedmods.net/showthread.php?p=1906203
and it works fine but i have problem with xpmod

PHP Code:
public OnCBasePlayer_PostThinkid )
{
    if( 
is_user_alive(id) )
    {
        new 
Float:flFallVelocity get_pdata_float(idm_flFallVelocity)
        if( 
flFallVelocity 10.0 )
        {
            new 
target pev(idpev_groundentity)
            if( 
IsPlayer(target) && is_user_alive(target) )
            {
                
iExp[id] += gNumExp// nothing happend ( i want give exp to player on the top)
                
iExp[target] += gNumExp// now player on the bottom receives exp
              //  ExecuteHam(Ham_TakeDamage, target, id, id, flFallVelocity * 0.1, DMG_FALL)
            
}
        }
    }

Show me how iExp is created and where it's used. I also advice you to put a log print to see if that part of the code even gets called.
__________________

Last edited by edon1337; 07-14-2019 at 16:13.
edon1337 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 17:23.


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