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_PostThink( id )
{
if( is_user_alive(id) )
{
new Float:flFallVelocity = get_pdata_float(id, m_flFallVelocity)
if( flFallVelocity > 10.0 )
{
new target = pev(id, pev_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)
}
}
}
}