Ninja Bodil
New Member
- Joined
- Mar 7, 2009
- Messages
- 116
- Reaction score
- 0
What's wrong with this script?
Code:
function onSay(cid, words, param)
if(param == "Dear God") then
if(getPlayerStorageValue(20101, 1) == false) then
if(getPlayerPosition(cid) == {x = 1000, y = 993, z = 6}) then
doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "An angel told you about a message from God. Talk to Father Damien about the message")
doPlayerSetStorageValue(20101, 1)
else
doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Maybe the isn't the right place to pray?")
end
else
doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, "Angels only show up once")
end
return true
end
end