Quote:
Originally Posted by theHAWKER
umkay, how would you use onActionprojectile in a script??
|
First, you have to use setshootparams() before shoot() to send the damage and some way to identify the projectile.
i.e.
setshootparams("hurtfulprojectile", 3);
Then have the following code in a weapon every player carries...
PHP Code:
function onActionProjectile(){
if (params[0] = "hurtfulprojectile") {
hurt(params[1]);
}
}
Plus you'll probably want other checks to make sure the player is in a PK zone and stuff.