pass player.account as a parameter then.
Here's a little example that might help you understand parameters a bit better.
PHP Code:
function onPlayerEnters() {
this.trigger("Example", "random", 12, player.account, 36);
}
function onExample(a, b, acc, c) {
echo(a); // same as echo(params[0]);
echo(b); // same as echo(params[1]);
echo(acc); // same as echo(params[2]);
echo(c); // same as echo(params[3]);
}
When you get to the point where you have a working 'attacker' parameter you can then just do (assuming you have an EXP like the one I posted
here)..
findplayer(attacker).addEXP(amount);