function onLogin(cid)
local bless = {"First Bless,", "Second Bless,", "Third Bless,", "Fourth Bless,", "Fifth Bless."}
local check = "Received blessings: "
local hasBlessings = false
for i = 1, #bless do
if getPlayerBlessing(cid, i) then
check = check .. bless[i]
hasBlessings = true
end
end
if hasBlessings then
doPlayerSendTextMessage(cid, 20, check)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "[Warning] - You are not blessed, use the command [!bless].")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "[Warning] - You are not blessed, use the command [!bless].")
end
return true
end