president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Get a teleport leading to the city anywhere in your home.
rep+ :wub:
rep+ :wub:
function onSay(cid, words, param, channel)
return hasCondition(cid, CONDITION_INFIGHT) and doPlayerSendCancel(cid, "Sorry, you are in a fight.") or getPlayerLevel(cid) < getConfigInfo("levelToBuyHouse") and doPlayerSendCancel(cid, "Sorry, not possible.") or not getHouseByPlayerGUID(getPlayerGUID(cid)) and doPlayerSendCancel(cid, "Sorry, but you do not own a house.") or doTeleportThing(cid, getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))))
end
function onSay(cid, words, param, channel)
return
hasCondition(cid, CONDITION_INFIGHT) and
doPlayerSendCancel(cid, "Sorry, you are in a fight.")
or getPlayerLevel(cid) < getConfigInfo("levelToBuyHouse") and
doPlayerSendCancel(cid, "Sorry, not possible.")
or not getHouseByPlayerGUID(getPlayerGUID(cid)) and
doPlayerSendCancel(cid, "Sorry, but you do not own a house.")
or doTeleportThing(cid, getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))))
end