Pawcio6
Member
- Joined
- Sep 26, 2009
- Messages
- 144
- Solutions
- 4
- Reaction score
- 15
Witam
Umialby ktos poprawic ten skrypt?
Poniewaz gdy ktos padnie to getPlayerLevel pobiera nowy level a chcialbym by skrypt pobieral lvl przed padnieciem
Umialby ktos poprawic ten skrypt?
PHP:
function onDeath(cid, corpse, deathList)
if getPlayerVocation(cid) == 2 then
setCreatureMaxMana(cid, getCreatureMaxMana(cid) -(getPlayerLevel(cid)*15))
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) -(getPlayerLevel(cid)*5))
elseif getPlayerVocation(cid) == 3 then
setCreatureMaxMana(cid, getCreatureMaxMana(cid) -(getPlayerLevel(cid)*35))
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) -(getPlayerLevel(cid)*15))
end
return TRUE
end