vingo
Active Member
- Joined
- Oct 27, 2012
- Messages
- 464
- Reaction score
- 43
PHP:
function onSay(cid, words, param)
local player = Player(cid)
if getCreatureCondition(cid, CONDITION_INFIGHT) > 0 then
doPlayerSendCancel(cid, "You cannot use this while in battle.") else
end
local town = Town(param)
if town == nil then
return false
end
player:teleportTo(town:getTemplePosition())
return false
end
this doesnt work..
<talkaction words="!t" separator=" " script="teleport.lua"/>