• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Remove stamina on Death

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

Code:
function onDeath(cid, corpse, killer)
    if getPlayerLevel(cid) > 250 then
        doPlayerSetStamina(cid, getPlayerStamina(cid) - 2550)
    end
    return true
end
I'm putting it on creatures scripts but when i test it, they do not lose anything of stamina.
 
Back
Top