local pos = getPlayerPosition(cid)
if getTilePzInfo(pos) == TRUE then
doRemoveCondition(cid,CONDITION_INFIGHT)
else
doPlayerSendCancel(cid,"You can use this command in PZ.")
return TRUE
end
local pos = getPlayerPosition(cid)
if getTilePzInfo(pos) == TRUE then
doPlayerSendCancel(cid,"You may not use this command while standing inside of a protection zone.")
return TRUE
end
/command "2ndplayername"
local t = string.explode(param, ",")
if t[1] then
local pid, pidpos = getPlayerByNameWildcard(t[1]), getThingPos(getPlayerByNameWildcard(t[1]))
if not getTilePzInfo(pos) then
function onSay(cid, words, param)
local t = string.explode(param, ",")
if t[1] then
local pid, pidpos = getPlayerByNameWildcard(t[1]), getThingPos(getPlayerByNameWildcard(t[1]))
if not getTilePzInfo(pos) then
doCreatureSay(cid, "Command will return true.", TALKTYPE_MONSTER)
else
doCreatureSay(cid, "Command will not work because target player is inside of protection zone tile.", TALKTYPE_MONSTER)
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
end
else
doCreatureSay(cid, "Wrong specified parameter(s).", TALKTYPE_MONSTER)
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
end
return true
end