View Single Post
  #4  
Old 09-12-2007, 03:22 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally Posted by theHAWKER View Post
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.
__________________
Reply With Quote