Nightimarez
New Member
- Joined
- Jul 24, 2008
- Messages
- 287
- Reaction score
- 2
I need a spell that looks something like this.
local target = getPlayerByNameWildcard(param)
function onCastSpell(cid, var)
if(param == '') and (not getTileInfo(fromPosition).protection) then
doTeleportThing(cid, target) else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cant teleport to players that are in protection zone.")
end
local target = getPlayerByNameWildcard(param)
function onCastSpell(cid, var)
if(param == '') and (not getTileInfo(fromPosition).protection) then
doTeleportThing(cid, target) else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cant teleport to players that are in protection zone.")
end