Phemus
Member
- Joined
- Jun 16, 2012
- Messages
- 149
- Solutions
- 2
- Reaction score
- 12
Hello, I'm trying to create a script where if a player dies at level 250 or above because of a monster or a player, he loses stamina. This is my script so far
I'm putting it on creatures scripts but when i test it, they do not lose anything of stamina.
Code:
function onDeath(cid, corpse, killer)
if getPlayerLevel(cid) > 250 then
doPlayerSetStamina(cid, getPlayerStamina(cid) - 2550)
end
return true
end