function onStepIn(cid, item, position, fromPosition)
local pozycja = {x=getPlayerPosition(cid).x,y=getPlayerPosition(cid).y,z=getPlayerPosition(cid).z}
if getTilePzInfo(pozycja) == FALSE and isPlayer(cid) == TRUE and getPlayerSlotItem(cid, 2).itemid ~= 2173 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Warning! You don't have Amulet Of Loss")
end
end
Hello,
i need script alert players if they don't wear aol while they stepOut from protection zone =)
Maybe this ?Code:function onStepIn(cid, item, position, fromPosition) local pozycja = {x=getPlayerPosition(cid).x,y=getPlayerPosition(cid).y,z=getPlayerPosition(cid).z} if getTilePzInfo(pozycja) == FALSE and isPlayer(cid) == TRUE and getPlayerSlotItem(cid, 2).itemid ~= 2173 then doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Warning! You don't have Amulet Of Loss") end end
i saw some servers their owners didnt edit their sources and have it worksteckman said:Impossible with lua. Go to the sources of engine and change the pz thingy.