Code:
//----------------------------------------------------------------------------------------------
//native sh_add_kill_xp(id, victim)
public _sh_add_kill_xp()
{
new id = get_param(1)
new victim = get_param(2)
// Stupid check - but checking prevents crashes
if ( id < 1 || id > gServersMaxPlayers || victim < 1 || victim > gServersMaxPlayers ) return
new float: multiplier = str_to_float(fmt("%d.%02d", (gPlayerLevel[id] / 100) + 1, gPlayerLevel[id] % 100))
localAddXP(id,floatround(multiplier * gXPGiven[gPlayerLevel[victim]]))
displayPowers(id, false)
}