use this
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...