I spent last hour looking for a solution, I checked so many different possibilities, no real effect, please look at the code, I am powerless. It's probably very easy, I just can't make it working.
function onAttack(cid, target)
if isPlayer(cid) == TRUE then
if isPlayer(target) == TRUE...