WiLDTuRTLE
Member
- Joined
- Feb 26, 2011
- Messages
- 478
- Reaction score
- 5
I been trying to add lines to it so when the player own no house, it says "You don't own a house" , atm it says you are pz cuz the player doesnt have a house
Code:
function onSay(cid, words, param, channel)
if getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE and getHouseByPlayerGUID(getPlayerGUID(cid)) then
if getPlayerPromotionLevel(cid) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need promotion!")
return TRUE
end
doTeleportThing(cid, getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))))
else
doSendMagicEffect(getPlayerPosition(cid),0)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are PZ.")
end
return true
end