Code:
native user_slap(index,power,rnddir=1);
-> change
Code:
user_slap(plist,slapdmg,slapnum)
to
Code:
user_slap(plist[i],slapdmg,slapnum)
but i guess you don't want to pass the slapnum variable to the rnddir param, which should specify whether he should be slapped in a random direction or in a direction based on where he is looking..
__________________