local storage = 105
local value = 1
-------------------
local global = 106
function onKill(cid, target)
if isPlayer(target) and getCreatureStorage(target, storage) == value then
doSetStorage(global, getStorage(global)-1)
end
return true
end
local players = getSpectators(centerPos, rangex, rangey)
for i = 1, #players do
if isPlayer(players[i]) then
doTeleportThing(players[i], {x=100,y=100,z=7})
end
end