Oneda
Aspiring Spriter
Hey there, I need a function that makes the player die, simple as that. (Atleast I tho it was.)
Tried this:
But nah, just got this error:
Distro: TFS0.4 REV 3777
Tried this:
Code:
function doKillPlayer(cid)
return doCreatureAddHealth(cid, -getCreatureMaxHealth(cid))
end
But nah, just got this error:
Code:
[20/4/2014 15:42:59] data/lib/050-function.lua:21: attempt to perform arithmetic on a boolean value
[20/4/2014 15:42:59] stack traceback:
[20/4/2014 15:42:59] data/lib/050-function.lua:21: in function <data/lib/050-function.lua:20>
Distro: TFS0.4 REV 3777