Code:
/check Druid Sample
This code just basically tells you if Param is inside or outside of PZ zone. =p
LUA:
function onSay(cid, words, param, channel)
if(param == '') then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
end
local target = getPlayerByNameWildcard(param)
if(not target)then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.")
end
local name,msg = getCreatureName(target),""
if(getTilePzInfo(getCreaturePosition(target))) then
msg = name.." is inside of a PZ Zone."
else
msg = name.." is not inside a PZ Zone."
end
return doPlayerPopupFYI(cid, msg)
end

Last edited: