When a projectile hits the ground it calls onActionProjectile2(x, y, param0, param1, ...), if it's the player it calls onActionProjectile(param0, param1, ...).
I.e:
PHP Code:
//#CLIENTSIDE
function onCreated() {
setshootparams(player.nick);
shoot(player.x, player.y, player.z+1, temp.angle, temp.zangle, temp.power, "callipumppetidle", "callipumppet.png");
}
function onActionProjectile(param) {
onActionProjectile2(player.x, player.y, param);
}
function onActionProjectile2(px, py, param) {
player.chat = "Yay" SPC param @ "!";
}