Hi all i have tfs 0.3.6, please, help me modified this script:
add this function to this script:
onPrepareDeath when lvl higher then 76 lvl
Please
PHP:
function onLogin(cid)
local bless = {1, 2, 3, 4, 5}
local level = 20
if(getPlayerLevel(cid) <= level) then
for i = 1, table.maxn(bless) do
if(getPlayerBlessing(cid, bless[i])) then
return TRUE
else
doPlayerAddBlessing(cid, bless[i])
end
end
end
return true
end
add this function to this script:
onPrepareDeath when lvl higher then 76 lvl
Please